mirror of
https://github.com/golang/go
synced 2024-11-22 22:20:03 -07:00
cmd/go: fix non-script staleness checks interacting badly with GOFLAGS
Fixes #43012.
Change-Id: Idc7a64b53c411e6dadd98521a48e15e664737d42
GitHub-Last-Rev: b56c0880c3
GitHub-Pull-Request: golang/go#43155
Reviewed-on: https://go-review.googlesource.com/c/go/+/277453
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
759309029f
commit
81ea89adf3
@ -216,6 +216,7 @@ func TestMain(m *testing.M) {
|
|||||||
}
|
}
|
||||||
// Don't let these environment variables confuse the test.
|
// Don't let these environment variables confuse the test.
|
||||||
os.Setenv("GOENV", "off")
|
os.Setenv("GOENV", "off")
|
||||||
|
os.Unsetenv("GOFLAGS")
|
||||||
os.Unsetenv("GOBIN")
|
os.Unsetenv("GOBIN")
|
||||||
os.Unsetenv("GOPATH")
|
os.Unsetenv("GOPATH")
|
||||||
os.Unsetenv("GIT_ALLOW_PROTOCOL")
|
os.Unsetenv("GIT_ALLOW_PROTOCOL")
|
||||||
|
Loading…
Reference in New Issue
Block a user