]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: omit VCS stamping during bootstrap
authorBryan C. Mills <bcmills@google.com>
Fri, 9 Sep 2022 21:29:12 +0000 (17:29 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 22 Sep 2022 18:55:06 +0000 (18:55 +0000)
commit42a46206b97ca7cf4246d3c1230a70cf42ad5bb0
tree21d66c4b23dbe41dae623a8cc009b389ece55903
parent88a6a4d1ba75c01fcc7ab8b2b5c6108c36eb92b9
cmd/go: omit VCS stamping during bootstrap

cmd/dist can't easily hard-code -buildvcs=false because not all
versions of cmd/go supported for bootstrapping recognize that flag.

However, we don't want to stamp the bootstrap binaries: the stamping
is redundant with the VERSION file writted during bootstrapping (which
is why it is normally omitted for standard-library packages and
commands), and it may also interfere with building the Go repo from a
source tarball or zip file.

Fixes #54852.

Change-Id: If223f094af137c4c202d6bf622619bd2da397ec4
Reviewed-on: https://go-review.googlesource.com/c/go/+/432435
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
misc/reboot/reboot_test.go
src/cmd/go/internal/load/pkg.go