From: Than McIntosh Date: Mon, 14 Aug 2023 14:51:57 +0000 (-0400) Subject: cmd/go: skip gotoolchain_net script test for new-ish go experiments X-Git-Tag: go1.22rc1~1312 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=133cea5cba354cca6540728334ddb1ed253e941e;p=gostls13.git cmd/go: skip gotoolchain_net script test for new-ish go experiments Skip the gotoolchain_net script test if any new-ish GOEXPERIMENT is set, since it will fail under these circumstances. Updates #62106. Change-Id: Idfef8af7246a3fbe6481347872a94fe64bbaed7f Reviewed-on: https://go-review.googlesource.com/c/go/+/519195 Reviewed-by: Bryan Mills Run-TryBot: Bryan Mills TryBot-Result: Gopher Robot --- 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