diff options
| author | Austin Clements <austin@google.com> | 2021-04-14 11:33:46 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2021-04-14 16:18:34 +0000 |
| commit | ad44dfb0fda522df08e133d1f909bfe535c4b4be (patch) | |
| tree | 9cccd61adc6fc398a6c9d26c940f51c6dea4efbc | |
| parent | c98026c104dece6cf9aa6cf3f651dd16a0156cf2 (diff) | |
| download | go-ad44dfb0fda522df08e133d1f909bfe535c4b4be.tar.xz | |
cmd/go: clarify comment on HashSeed
Change-Id: I3c8769f52b86ca82611af373b0a493a937dda9d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/310090
Trust: Austin Clements <austin@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
| -rw-r--r-- | src/cmd/go/internal/cache/hash.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/go/internal/cache/hash.go b/src/cmd/go/internal/cache/hash.go index f16215428a..4f79c31500 100644 --- a/src/cmd/go/internal/cache/hash.go +++ b/src/cmd/go/internal/cache/hash.go @@ -40,8 +40,9 @@ type Hash struct { // // We strip any GOEXPERIMENTs the go tool was built with from this // version string on the assumption that they shouldn't affect go tool -// execution. This also allows bootstrapping to converge faster -// because dist builds go_bootstrap without any experiments. +// execution. This allows bootstrapping to converge faster: dist builds +// go_bootstrap without any experiments, so by stripping experiments +// go_bootstrap and the final go binary will use the same salt. var hashSalt = []byte(stripExperiment(runtime.Version())) // stripExperiment strips any GOEXPERIMENT configuration from the Go |
