From: K. "pestophagous" Heller Date: Mon, 5 Aug 2019 05:46:29 +0000 (-0700) Subject: doc/install-source: create distinction between steps that involve "git clone" X-Git-Tag: go1.13rc1~19 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9c1f14f3763dbbc0d8105fa88c0b7bdad5674ee7;p=gostls13.git doc/install-source: create distinction between steps that involve "git clone" Prior doc implied that "git clone" was one way to obtain a go1.4 bootstrap toochain, but it did not state this outright. Further, the doc did not make it explicit in the "Fetch the repository" section that one must necessarily "git clone" a second time in the (presumed-to-be-uncommon) case where "git clone" had already been perfomed in the "compiler binaries" section. Updates #33402 Change-Id: Id70a6587b6ee09aca13559d63868b75cb07dff1e Reviewed-on: https://go-review.googlesource.com/c/go/+/188900 Reviewed-by: Ian Lance Taylor --- diff --git a/doc/install-source.html b/doc/install-source.html index f78dacf7ea..12b10d5621 100644 --- a/doc/install-source.html +++ b/doc/install-source.html @@ -140,12 +140,16 @@ For example, $GOROOT_BOOTSTRAP/bin/go should be the go command binary for the bootstrap toolchain.

+

Bootstrap toolchain from binary release

+

To use a binary release as a bootstrap toolchain, see the downloads page or use any other packaged Go distribution.

+

Bootstrap toolchain from source

+

To build a bootstrap toolchain from source, use either the git branch release-branch.go1.4 or @@ -159,6 +163,17 @@ the environment, and run make.bash (or, on Windows, make.bat).

+

+Once the Go 1.4 source has been unpacked into your GOROOT_BOOTSTRAP directory, +you must keep this git clone instance checked out to branch +release-branch.go1.4. Specifically, do not attempt to reuse +this git clone in the later step named "Fetch the repository." The go1.4 +bootstrap toolchain must be able to properly traverse the go1.4 sources +that it assumes are present under this repository root. +

+ +

Bootstrap toolchain from cross-compiled source

+

To cross-compile a bootstrap toolchain from source, which is necessary on systems Go 1.4 did not target (for @@ -181,6 +196,8 @@ That tree can be copied to a machine of the given target type and used as GOROOT_BOOTSTRAP to bootstrap a local build.

+

Bootstrap toolchain using gccgo

+

To use gccgo as the bootstrap toolchain, you need to arrange for $GOROOT_BOOTSTRAP/bin/go to be the go tool that comes @@ -246,6 +263,11 @@ that if Go is checked out in $HOME/go, it will conflict with the default location of $GOPATH. See GOPATH below.

+Reminder: If you opted to also compile the bootstrap binaries from source (in an +earlier section), you still need to git clone again at this point +(to checkout the latest <tag>), because you must keep your +go1.4 repository distinct. +

If you intend to modify the go source code, and