]> Cypherpunks repositories - gostls13.git/commitdiff
doc: remove last pieces of advice to set GOROOT
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 8 Feb 2019 11:22:48 +0000 (11:22 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 10 Feb 2019 18:40:06 +0000 (18:40 +0000)
install.html still insisted that GOROOT must be set if a binary install
of Go is set up in a custom directory. However, since 1.10, this has
been unnecessary as the GOROOT will be found based on the location of
the 'go' binary being run.

Likewise, install-source.html includes an 'export GOROOT' line in a
section that only talks about explicitly setting GOARCH and GOOS, which
is optional. We don't want to have users think it is recommended to set
GOROOT here either, so remove the unnecessary line.

Change-Id: I7dfef09f9a1d003e0253b793d63ea40d5cf1837f
Reviewed-on: https://go-review.googlesource.com/c/161758
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>

doc/install-source.html
doc/install.html

index 2d12a288694c8fd9dc216fd3b85d411cdecbd526..6d416d33f16fe700a63d95ba0664514bfe4a035b 100644 (file)
@@ -666,7 +666,6 @@ something like this:
 </p>
 
 <pre>
-export GOROOT=$HOME/go1.X
 export GOARCH=amd64
 export GOOS=linux
 </pre>
index ab192031c46d46a27e257a7c04a3baf876fe25b7..a41c60ba6c8b205f1e763f9a9f3bebf7951933ba 100644 (file)
@@ -171,11 +171,6 @@ command prompts for the change to take effect.
 <a href="/dl/">Download the zip file</a> and extract it into the directory of your choice (we suggest <code>c:\Go</code>).
 </p>
 
-<p>
-If you chose a directory other than <code>c:\Go</code>,
-you must set the <code>GOROOT</code> environment variable to your chosen path.
-</p>
-
 <p>
 Add the <code>bin</code> subdirectory of your Go root (for example, <code>c:\Go\bin</code>) to your <code>PATH</code> environment variable.
 </p>