diff --git a/src/cmd/go/testdata/script/gotoolchain_net.txt b/src/cmd/go/testdata/script/gotoolchain_net.txt index 35f6696454..1d6473c6f9 100644 --- a/src/cmd/go/testdata/script/gotoolchain_net.txt +++ b/src/cmd/go/testdata/script/gotoolchain_net.txt @@ -1,6 +1,11 @@ # This test only checks that basic network lookups work. # The full test of toolchain version selection is in gotoolchain.txt. +# This test is sensitive to "new" Go experiments, so +# update the environment to remove any existing GOEXPERIMENT +# setting, see #62016 for more on this. +env GOEXPERIMENT='' + env TESTGO_VERSION=go1.21actual # GOTOOLCHAIN from network, does not exist