mirror of
https://github.com/golang/go
synced 2024-11-22 19:14:53 -07:00
cmd/go: fix non-script staleness checks interacting badly with GOFLAGS
This commit is contained in:
parent
41d8e61a6b
commit
b56c0880c3
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user