Lint walks skip .build: SwiftPM's checkout of rastrillo/native is not Docs' code
Human
Prompt
Gates `.amadan/ci.d/10-gate` and `20-native` with GOTOOLCHAIN=go1.26.5
From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.
Summary
TestNoPreMoveRastrillo (and the other walkers sharing skipDir) descended into native/apple/.build/checkouts/native/server, rastrillo/native's own Go server, which still imports the pre-move path. So 10-gate failed in any checkout where the native build had run first; a fresh hub clone passed. skipDir now skips .build alongside .git, node_modules and target.
1 file changed,
+3
−1
internal/lint/no_sessions_userid_test.go+3 −1
CI passed — run details
diff --git a/internal/lint/no_sessions_userid_test.go b/internal/lint/no_sessions_userid_test.go| index f6df02f..740d3c4 100644 |
| --- a/internal/lint/no_sessions_userid_test.go |
| +++ b/internal/lint/no_sessions_userid_test.go |
| @@ -53,7 +53,9 @@ func repoRoot(t *testing.T) string { |
| // only slow this test down for nothing. |
| func skipDir(name string) bool { |
| switch name { |
| - case ".git", "node_modules", "target": |
| + // .build is SwiftPM's and Xcode's: checkouts of other repositories |
| + // (rastrillo/native's own server among them), never Docs' code. |
| + case ".git", "node_modules", "target", ".build": |
| return true |
| } |
| return false |