]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: clarify comment on HashSeed
authorAustin Clements <austin@google.com>
Wed, 14 Apr 2021 15:33:46 +0000 (11:33 -0400)
committerAustin Clements <austin@google.com>
Wed, 14 Apr 2021 16:18:34 +0000 (16:18 +0000)
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>
src/cmd/go/internal/cache/hash.go

index f16215428aa475e92e6fd0cf307a469eec58cd44..4f79c3150024492db1572271c08ffb1a3eeca082 100644 (file)
@@ -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