1
0
mirror of https://github.com/golang/go synced 2024-11-12 07:00:21 -07:00

Remove "Setting GOROOT" custom install instruction

Setting GOROOT is no longer necessary for custom installation as of 1.10 (https://go-review.googlesource.com/c/go/+/42533)

Link to reporting issue here: https://github.com/golang/go/issues/25002
This commit is contained in:
Joe Cortopassi 2018-04-27 10:57:39 -05:00 committed by GitHub
parent 2959128dc5
commit 156bf6510a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,31 +114,6 @@ or execute them from the profile using a command such as
<code>source $HOME/.profile</code>. <code>source $HOME/.profile</code>.
</p> </p>
<h4 id="tarball_non_standard">Installing to a custom location</h4>
<p>
The Go binary distributions assume they will be installed in
<code>/usr/local/go</code> (or <code>c:\Go</code> under Windows),
but it is possible to install the Go tools to a different location.
In this case you must set the <code>GOROOT</code> environment variable
to point to the directory in which it was installed.
</p>
<p>
For example, if you installed Go to your home directory you should add
commands like the following to <code>$HOME/.profile</code>:
</p>
<pre>
export GOROOT=$HOME/go1.X
export PATH=$PATH:$GOROOT/bin
</pre>
<p>
<b>Note</b>: <code>GOROOT</code> must be set only when installing to a custom
location.
</p>
</div><!-- tarballInstructions --> </div><!-- tarballInstructions -->
<div id="darwinPackageInstructions"> <div id="darwinPackageInstructions">