]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix tests when go.env sets GOPROXY=direct GOSUMDB=off
authorBryan C. Mills <bcmills@google.com>
Fri, 14 Jul 2023 18:50:37 +0000 (14:50 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 17 Jul 2023 18:25:37 +0000 (18:25 +0000)
commit229cde5149fb30b5207c03e7ad296d9dbe027e66
tree31cbca02258230a81e519660e8a47a2955aea070
parentc3458e35f4166473053dadeb645130b118c43ce7
cmd/go: fix tests when go.env sets GOPROXY=direct GOSUMDB=off

Tested locally by changing GOROOT/go.env. At some point perhaps we
should also set up a builder that runs with some common expected
modifications to go.env
(such as GOTOOLCHAIN=local GOPROXY=direct GOSUMDB=off).

Fixes #61358.
Updates #61359.

Change-Id: I365ec536bec86370e302fb726fa897400ab42cf3
Reviewed-on: https://go-review.googlesource.com/c/go/+/509637
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
src/cmd/go/scriptconds_test.go
src/cmd/go/testdata/script/README
src/cmd/go/testdata/script/gotoolchain_net.txt
src/cmd/go/testdata/script/gotoolchain_version.txt
src/cmd/go/testdata/script/mod_prefer_compatible.txt
src/cmd/go/testdata/script/mod_sumdb_file_path.txt
src/cmd/go/testdata/script/mod_sumdb_golang.txt