Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/repos/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ const BASE_REPOS: Omit<RepoConfig, "tag">[] = [
"docs/developer_versioned_docs/version-{version}",
"docs/static/aztec-nr-api/devnet",
"docs/static/typescript-api/devnet",
"docs/docs-developers/docs/aztec-nr/debugging.md",
"docs/docs-operate/operators/operator-faq.md",
"docs/docs-developers/docs/aztec-nr",
"docs/docs-operate/operators",
],
branch: "next",
},
Expand Down
6 changes: 3 additions & 3 deletions src/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export async function cloneRepo(
const repoGit = simpleGit({ baseDir: clonePath, progress: progressHandler });
await repoGit.raw(["config", "gc.auto", "0"]);
log?.(`${config.name}: Setting sparse checkout paths: ${config.sparse!.join(", ")}`, "debug");
await repoGit.raw(["sparse-checkout", "set", ...config.sparse!]);
await repoGit.raw(["sparse-checkout", "set", "--skip-checks", ...config.sparse!]);
log?.(`${config.name}: Fetching commit ${config.commit.substring(0, 7)}`, "info");
await repoGit.fetch(["origin", config.commit]);
log?.(`${config.name}: Checking out commit`, "debug");
Expand All @@ -116,7 +116,7 @@ export async function cloneRepo(
const repoGit = simpleGit({ baseDir: clonePath, progress: progressHandler });
await repoGit.raw(["config", "gc.auto", "0"]);
log?.(`${config.name}: Setting sparse checkout paths: ${config.sparse!.join(", ")}`, "debug");
await repoGit.raw(["sparse-checkout", "set", ...config.sparse!]);
await repoGit.raw(["sparse-checkout", "set", "--skip-checks", ...config.sparse!]);
log?.(`${config.name}: Fetching tag ${config.tag}`, "info");
await repoGit.fetch(["--depth=1", "origin", `refs/tags/${config.tag}:refs/tags/${config.tag}`]);
log?.(`${config.name}: Checking out tag`, "debug");
Expand All @@ -132,7 +132,7 @@ export async function cloneRepo(
const repoGit = simpleGit({ baseDir: clonePath, progress: progressHandler });
await repoGit.raw(["config", "gc.auto", "0"]);
log?.(`${config.name}: Setting sparse checkout paths: ${config.sparse!.join(", ")}`, "debug");
await repoGit.raw(["sparse-checkout", "set", ...config.sparse!]);
await repoGit.raw(["sparse-checkout", "set", "--skip-checks", ...config.sparse!]);
}
} else {
// Clone for smaller repos
Expand Down
4 changes: 2 additions & 2 deletions tests/repos/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ describe("AZTEC_REPOS", () => {
`docs/developer_versioned_docs/version-${DEFAULT_AZTEC_VERSION}`,
"docs/static/aztec-nr-api/devnet",
"docs/static/typescript-api/devnet",
"docs/docs-developers/docs/aztec-nr/debugging.md",
"docs/docs-operate/operators/operator-faq.md",
"docs/docs-developers/docs/aztec-nr",
"docs/docs-operate/operators",
],
branch: "next",
},
Expand Down
1 change: 1 addition & 0 deletions tests/utils/git.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ describe("cloneRepo", () => {
expect(mockGitInstance.raw).toHaveBeenCalledWith([
"sparse-checkout",
"set",
"--skip-checks",
"docs",
"noir-projects",
]);
Expand Down