Skip to content

Commit f8151ec

Browse files
committed
Fix unit-test Prow failure by locking GOTOOLCHAIN to go1.24.0
This prevents Go from auto-downloading Go 1.25.0 minimal toolchain in Prow, which contains a packaging bug where the 'covdata' tool is missing, causing '-cover' test builds to fail with 'go: no such tool "covdata"'. Locking it to go1.24.0 (which matches the go.mod baseline) ensures Go compiles safely and avoids the bug, even on runners that only have an older Go version.
1 parent 512b79b commit f8151ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ verify:
302302
hack/verify-all.sh
303303

304304
unit-test:
305-
go test -v -mod=vendor -timeout 30s "./pkg/..." -cover
305+
GOTOOLCHAIN=go1.24.0 go test -v -mod=vendor -timeout 30s "./pkg/..." -cover
306306

307307
sanity-test:
308-
cd test && go mod tidy && go test -mod=readonly -v -timeout 30s "./sanity/" -run TestSanity
308+
cd test && go mod tidy && GOTOOLCHAIN=go1.24.0 go test -mod=readonly -v -timeout 30s "./sanity/" -run TestSanity
309309

310310
build-e2e-test:
311311
cd test && go build -o ../bin/e2e-test-ci ./e2e

0 commit comments

Comments
 (0)