aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2019-02-08 11:22:48 +0000
committerDaniel Martí <mvdan@mvdan.cc>2019-02-10 18:40:06 +0000
commite1b49ad608c0b51acf75f8248e1167acbbcb5d30 (patch)
tree612d3289275b512b8953873e2e524547f337e3a0
parentca7c12d4c9eb4a19ca5103ec5763537cccbcc13b (diff)
downloadgo-e1b49ad608c0b51acf75f8248e1167acbbcb5d30.tar.gz
go-e1b49ad608c0b51acf75f8248e1167acbbcb5d30.zip
doc: remove last pieces of advice to set GOROOT
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>
-rw-r--r--doc/install-source.html1
-rw-r--r--doc/install.html5
2 files changed, 0 insertions, 6 deletions
diff --git a/doc/install-source.html b/doc/install-source.html
index 2d12a28869..6d416d33f1 100644
--- a/doc/install-source.html
+++ b/doc/install-source.html
@@ -666,7 +666,6 @@ something like this:
</p>
<pre>
-export GOROOT=$HOME/go1.X
export GOARCH=amd64
export GOOS=linux
</pre>
diff --git a/doc/install.html b/doc/install.html
index ab192031c4..a41c60ba6c 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -172,11 +172,6 @@ command prompts for the change to take effect.
</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>