You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.
$ go version
go version devel go1.22-7fecf2b864 Mon Aug 14 10:18:12 2023 -0400 X:newinliner linux/amd64
Does this issue reproduce with the latest release?
Happens on the 1.21 release branch as well.
What operating system and processor architecture are you using (go env)?
linux/amd64
What did you do?
Ran this test:
$ GOEXPERIMENT=newinliner go test -v -count=1 -run=Script/gotoolchain_net
What did you expect to see?
Pass
What did you see instead?
Failure with "unknown experiment". Example:
--- FAIL: TestScript/gotoolchain_net (23.84s)
script_test.go:132: 2023-08-14T14:25:17Z
script_test.go:134: $WORK=/tmp/cmd-go-test-4182049692/tmpdir101768339/gotoolchain_net2425465477
script_test.go:156:
# This test only checks that basic network lookups work.
# The full test of toolchain version selection is in gotoolchain.txt. (0.000s)
# GOTOOLCHAIN from network, does not exist (0.134s)
# GOTOOLCHAIN from network (0.167s)
# GOTOOLCHAIN cached from network (0.030s)
# GOTOOLCHAIN with GOSUMDB enabled but at a bad URL should operate in cache and not try badurl (0.092s)
# GOTOOLCHAIN with GOSUMB=off should fail, because it cannot access even the cached sumdb info
# without the sumdb name. (0.083s)
# GOTOOLCHAIN with GOSUMDB enabled but at a bad URL should fail if cache is incomplete (0.060s)
# Test a real GOTOOLCHAIN (22.207s)
> [short] skip
[condition not met]
> [!net:golang.org] skip
[condition not met]
> [!net:sum.golang.org] skip
[condition not met]
> [!GOOS:darwin] [!GOOS:windows] [!GOOS:linux] skip
[condition not met]
> [!GOARCH:amd64] [!GOARCH:arm64] skip
[condition not met]
> env GOPROXY=
> [go-builder] env GOSUMDB=
[condition not met]
> [!go-builder] env GOSUMDB=sum.golang.org # Set explicitly in case GOROOT/go.env is modified.
> env GOTOOLCHAIN=go1.20.1
> env PATH=
> env path=
> go version
[stderr]
go: downloading go1.20.1 (linux/amd64)
go: unknown GOEXPERIMENT newinliner
script_test.go:156: FAIL: testdata/script/gotoolchain_net.txt:63: go version: exit status 2
FAIL
FAIL cmd/go 289.943s
This does not seem to be specific to GOEXPERIMENT=newinliner; also happens with GOEXPERIMENT=cacheprog or GOEXPERIMENT=loopvar (e.g. some experiment that is relatively new).
I will send a CL to skip this test for GOEXPERIMENT=newinliner, but if there is some better way to handle this (other than one-off skips) please let me know. Thanks.
NeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Happens on the 1.21 release branch as well.
What operating system and processor architecture are you using (
go env
)?linux/amd64
What did you do?
Ran this test:
What did you expect to see?
Pass
What did you see instead?
Failure with "unknown experiment". Example:
This does not seem to be specific to GOEXPERIMENT=newinliner; also happens with GOEXPERIMENT=cacheprog or GOEXPERIMENT=loopvar (e.g. some experiment that is relatively new).
I will send a CL to skip this test for GOEXPERIMENT=newinliner, but if there is some better way to handle this (other than one-off skips) please let me know. Thanks.
@rsc @bcmills
The text was updated successfully, but these errors were encountered: