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 <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Than McIntosh 2023-08-14 10:51:57 -04:00
parent c6ee8e31e3
commit 133cea5cba

View 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