From 635b1244aa7671bcd665613680f527452cac7555 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 16 Jun 2022 15:43:57 -0400 Subject: [PATCH] cmd/go: pass GOEXPERIMENT through to subtests This fixes: export GOEXPERIMENT=unified go install cmd go install std cmd go install std cmd go test -short cmd/go -run=TestScript/test_relative_import_dash_i That script test checks that runtime is non-stale, but whether it's stale depends on the setting of GOEXPERIMENT. Stop filtering that variable out. Change-Id: I71bdbca495c16981cdcddf4ab4d87a38ca72a389 Reviewed-on: https://go-review.googlesource.com/c/go/+/412874 Run-TryBot: Russ Cox TryBot-Result: Gopher Robot Reviewed-by: Matthew Dempsky Auto-Submit: Russ Cox --- src/cmd/go/script_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/go/script_test.go b/src/cmd/go/script_test.go index 04bc8d581a3..3ad0608725e 100644 --- a/src/cmd/go/script_test.go +++ b/src/cmd/go/script_test.go @@ -170,6 +170,7 @@ func (ts *testScript) setup() { "GOCACHE=" + testGOCACHE, "GODEBUG=" + os.Getenv("GODEBUG"), "GOEXE=" + cfg.ExeSuffix, + "GOEXPERIMENT=" + os.Getenv("GOEXPERIMENT"), "GOOS=" + runtime.GOOS, "GOPATH=" + filepath.Join(ts.workdir, "gopath"), "GOPROXY=" + proxyURL,