Skip to content

Commit 81ea89a

Browse files
programmer04Bryan C. Mills
authored and
Bryan C. Mills
committed
cmd/go: fix non-script staleness checks interacting badly with GOFLAGS
Fixes #43012. Change-Id: Idc7a64b53c411e6dadd98521a48e15e664737d42 GitHub-Last-Rev: b56c088 GitHub-Pull-Request: #43155 Reviewed-on: https://go-review.googlesource.com/c/go/+/277453 Reviewed-by: Jay Conrod <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]> Trust: Jay Conrod <[email protected]> Run-TryBot: Jay Conrod <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent 7593090 commit 81ea89a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/go/go_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ func TestMain(m *testing.M) {
216216
}
217217
// Don't let these environment variables confuse the test.
218218
os.Setenv("GOENV", "off")
219+
os.Unsetenv("GOFLAGS")
219220
os.Unsetenv("GOBIN")
220221
os.Unsetenv("GOPATH")
221222
os.Unsetenv("GIT_ALLOW_PROTOCOL")

0 commit comments

Comments
 (0)