beads/scripts/prlintmake
Julian Knutsen d2844318a1
fix(tests): prlintmake runs go.mod's toolchain from the Bazel Go SDK (#7138)
Under Bazel, prlintmake_test resolved go.mod's toolchain (go1.26.7)
through whatever go the executor has on PATH. When that is another
release, gofmt-bin.sh's GOTOOLCHAIN=go1.26.7 fallback downloads the
toolchain from proxy.golang.org on every run, and fails where actions
have no network: rbe-west's fork pool runs every action in its own
network namespace with loopback only (NETNS=1). Three tests failed
there (TestGofmtBinMatchesGoModToolchain, TestGofmtBinIgnoresPathGofmt,
TestFmtCheckReportsGofmtVersion) and passed with NETNS=0.

The registered SDK is go.mod's toolchain (bazel_policy_test pins them),
so declare it as data and have testGo put it first on PATH. gofmt-bin.sh
then takes its "host go already is the pinned one" path and fetches
nothing. Plain `go test` is unchanged.

Co-authored-by: gascity-agent <agent@gascity.ai>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-03 13:33:54 -07:00
..
BUILD.bazel fix(tests): prlintmake runs go.mod's toolchain from the Bazel Go SDK (#7138) 2026-10-03 13:33:54 -07:00
gofmtbin_test.go fix(tests): prlintmake runs go.mod's toolchain from the Bazel Go SDK (#7138) 2026-10-03 13:33:54 -07:00
prlintmake_test.go fix(preflight): share checkout lint authority (#5780) 2026-09-30 22:41:55 -07:00