build: default GOROOT_BOOTSTRAP to go env GOROOT
#21037
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Currently, developers wanting to build Go from source need to either have a Go install at
$HOME/go1.4
or explicitly setGOROOT_BOOTSTRAP
. I frequently recommend prefixing the build scripts withGOROOT_BOOTSTRAP=$(go env GOROOT)
, this has worked well in the cases I've helped with. I believe baking this into the script would simplify the process for many developers.To retain backward compatibility, I suggest the following precedence:
GOROOT_BOOTSTRAP
$HOME/go1.4
go env GOROOT
The text was updated successfully, but these errors were encountered: