Skip to content

Commit cc600c2

Browse files
critesjoshclaude
andcommitted
feat: broaden sparse checkout paths and add --skip-checks flag
Expand sparse checkout paths from specific files to their parent directories to capture more relevant source files. Add --skip-checks to sparse-checkout set to allow paths that may not exist at checkout time. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1946be7 commit cc600c2

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/repos/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ const BASE_REPOS: Omit<RepoConfig, "tag">[] = [
4545
"barretenberg/ts/src",
4646
"boxes",
4747
"playground",
48-
"l1-contracts/src/core/libraries/Errors.sol",
48+
"l1-contracts/src/core/libraries",
4949
],
5050
sparsePathOverrides: [
5151
{
5252
paths: [
5353
"docs/developer_versioned_docs/version-{version}",
5454
"docs/static/aztec-nr-api/devnet",
5555
"docs/static/typescript-api/devnet",
56-
"docs/docs-developers/docs/aztec-nr/debugging.md",
57-
"docs/docs-operate/operators/operator-faq.md",
56+
"docs/docs-developers/docs/aztec-nr",
57+
"docs/docs-operate/operators",
5858
],
5959
branch: "next",
6060
},

src/utils/git.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export async function cloneRepo(
101101
const repoGit = simpleGit({ baseDir: clonePath, progress: progressHandler });
102102
await repoGit.raw(["config", "gc.auto", "0"]);
103103
log?.(`${config.name}: Setting sparse checkout paths: ${config.sparse!.join(", ")}`, "debug");
104-
await repoGit.raw(["sparse-checkout", "set", ...config.sparse!]);
104+
await repoGit.raw(["sparse-checkout", "set", "--skip-checks", ...config.sparse!]);
105105
log?.(`${config.name}: Fetching commit ${config.commit.substring(0, 7)}`, "info");
106106
await repoGit.fetch(["origin", config.commit]);
107107
log?.(`${config.name}: Checking out commit`, "debug");
@@ -116,7 +116,7 @@ export async function cloneRepo(
116116
const repoGit = simpleGit({ baseDir: clonePath, progress: progressHandler });
117117
await repoGit.raw(["config", "gc.auto", "0"]);
118118
log?.(`${config.name}: Setting sparse checkout paths: ${config.sparse!.join(", ")}`, "debug");
119-
await repoGit.raw(["sparse-checkout", "set", ...config.sparse!]);
119+
await repoGit.raw(["sparse-checkout", "set", "--skip-checks", ...config.sparse!]);
120120
log?.(`${config.name}: Fetching tag ${config.tag}`, "info");
121121
await repoGit.fetch(["--depth=1", "origin", `refs/tags/${config.tag}:refs/tags/${config.tag}`]);
122122
log?.(`${config.name}: Checking out tag`, "debug");
@@ -132,7 +132,7 @@ export async function cloneRepo(
132132
const repoGit = simpleGit({ baseDir: clonePath, progress: progressHandler });
133133
await repoGit.raw(["config", "gc.auto", "0"]);
134134
log?.(`${config.name}: Setting sparse checkout paths: ${config.sparse!.join(", ")}`, "debug");
135-
await repoGit.raw(["sparse-checkout", "set", ...config.sparse!]);
135+
await repoGit.raw(["sparse-checkout", "set", "--skip-checks", ...config.sparse!]);
136136
}
137137
} else {
138138
// Clone for smaller repos

0 commit comments

Comments
 (0)