From b56c0880c3b5ceb86c6fa2ba6bf82f8969e10472 Mon Sep 17 00:00:00 2001 From: Jakub Warczarek Date: Sat, 12 Dec 2020 18:38:11 +0100 Subject: [PATCH] cmd/go: fix non-script staleness checks interacting badly with GOFLAGS --- src/cmd/go/go_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index c472620db29..0d98a1e41ef 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -216,6 +216,7 @@ func TestMain(m *testing.M) { } // Don't let these environment variables confuse the test. os.Setenv("GOENV", "off") + os.Unsetenv("GOFLAGS") os.Unsetenv("GOBIN") os.Unsetenv("GOPATH") os.Unsetenv("GIT_ALLOW_PROTOCOL")