]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: skip gotoolchain_net script test for new-ish go experiments
authorThan McIntosh <thanm@google.com>
Mon, 14 Aug 2023 14:51:57 +0000 (10:51 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 14 Aug 2023 17:16:47 +0000 (17:16 +0000)
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 <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/cmd/go/testdata/script/gotoolchain_net.txt

index 35f66964546c9f4c5efe2ebd2bcfe2778b1e244e..1d6473c6f945c1ff765a4efa45a3d12346c23131 100644 (file)
@@ -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