]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: reproducibility fixes
authorRuss Cox <rsc@golang.org>
Sun, 5 Mar 2023 18:05:25 +0000 (13:05 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 13 Mar 2023 16:47:12 +0000 (16:47 +0000)
commit91c82ff7c972d0bd6f67d49e11bcba25e7eb287e
treed6e9a9144042ec60ce369b8b28687fe822790210
parent43f911b0b6c550e6c5b46219d8d0d1ca7ce3f97c
cmd/dist: reproducibility fixes

Fix a few lingering reproducibility problems.

- Do not set CC during go install std if it is unset,
  so that the automatic disabling of cgo in cmd/go can run.

- Since CC is not necessary, remove code insisting on it.

- Use a fixed quoting algorithm instead of %q from the
  bootstrap toolchain, which can differ from release to release.

- Remove go_bootstrap tool successfully on Windows.

For #24904.

Change-Id: I5c29ba6a8592e93bfab37f123b69f55c02f12ce3
Reviewed-on: https://go-review.googlesource.com/c/go/+/475377
Auto-Submit: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/dist/build.go
src/cmd/dist/buildgo.go