]> Cypherpunks repositories - gostls13.git/commit
cmd/go: make test binary builds reproducible
authorRuss Cox <rsc@golang.org>
Thu, 2 Nov 2017 17:38:08 +0000 (13:38 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 3 Nov 2017 17:45:11 +0000 (17:45 +0000)
commit14f2bfd369cf3e85346130996db058620d656385
treedc8621b6465571043d104845c9388c021e41c61c
parentefb1a7524eda6c36efdb506d0f9e8d822808593e
cmd/go: make test binary builds reproducible

The name of the temporary directory containing _testmain.go
was leaking into the binary.

Found with GODEBUG=gocacheverify=1 go test std.

Change-Id: I5b35f049b564f3eb65c6a791ee785d15255c7885
Reviewed-on: https://go-review.googlesource.com/75630
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/cache/cache.go
src/cmd/go/internal/cache/cache_test.go
src/cmd/go/internal/cache/hash.go
src/cmd/go/internal/test/test.go