Skip to content

Commit

Permalink
doc: remove GOROOT custom install instruction
Browse files Browse the repository at this point in the history
Setting GOROOT is no longer necessary for custom installation as of 1.10 (reference: https://go-review.googlesource.com/c/go/+/42533). Fixes #25002

Change-Id: Ic3980833ac437b7a20b951df33805ad1071a40ce
GitHub-Last-Rev: 156bf65
GitHub-Pull-Request: #25190
Reviewed-on: https://go-review.googlesource.com/110435
Reviewed-by: Ian Lance Taylor <[email protected]>
  • Loading branch information
JoeCortopassi authored and ianlancetaylor committed Jun 12, 2018
1 parent c006036 commit 6b3e343
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions doc/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,31 +114,6 @@ <h3 id="tarball">Linux, Mac OS X, and FreeBSD tarballs</h3>
<code>source $HOME/.profile</code>.
</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 id="darwinPackageInstructions">
Expand Down

0 comments on commit 6b3e343

Please sign in to comment.