mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
c98026c104
commit
ad44dfb0fd
1 changed files with 3 additions and 2 deletions
5
src/cmd/go/internal/cache/hash.go
vendored
5
src/cmd/go/internal/cache/hash.go
vendored
|
|
@ -40,8 +40,9 @@ type Hash struct {
|
||||||
//
|
//
|
||||||
// We strip any GOEXPERIMENTs the go tool was built with from this
|
// We strip any GOEXPERIMENTs the go tool was built with from this
|
||||||
// version string on the assumption that they shouldn't affect go tool
|
// version string on the assumption that they shouldn't affect go tool
|
||||||
// execution. This also allows bootstrapping to converge faster
|
// execution. This allows bootstrapping to converge faster: dist builds
|
||||||
// because dist builds go_bootstrap without any experiments.
|
// 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()))
|
var hashSalt = []byte(stripExperiment(runtime.Version()))
|
||||||
|
|
||||||
// stripExperiment strips any GOEXPERIMENT configuration from the Go
|
// stripExperiment strips any GOEXPERIMENT configuration from the Go
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue