mirror of
https://github.com/burrowers/garble.git
synced 2026-04-22 23:57:14 +08:00
clarify why TestScript sets GONOSUMDB (#958)
And unset it in gotoolchain.txtar, as that one testscript does fetch modules from the real proxy.golang.org. Closes #950.
This commit is contained in:
Vendored
+3
@@ -15,8 +15,11 @@ setup-go ${GOVERSION_BASE}
|
||||
|
||||
# We want to use the real GOPROXY so that we can download the newer
|
||||
# toolchain, and we use the host's GOMODCACHE so we can reuse it.
|
||||
# Unset GONOSUMDB to get its default value, as TestScript's setup func
|
||||
# sets it to "*" to not use sum.golang.org with the testdata/mod modules.
|
||||
env GOPROXY=proxy.golang.org
|
||||
env GOMODCACHE=${HOST_GOMODCACHE}
|
||||
env GONOSUMDB=
|
||||
|
||||
# Verify that we are using an older version of Go.
|
||||
exec go version
|
||||
|
||||
Reference in New Issue
Block a user