Skip to content

Commit 156bf65

Browse files
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: #25002
1 parent 2959128 commit 156bf65

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

doc/install.html

-25
Original file line numberDiff line numberDiff line change
@@ -114,31 +114,6 @@ <h3 id="tarball">Linux, Mac OS X, and FreeBSD tarballs</h3>
114114
<code>source $HOME/.profile</code>.
115115
</p>
116116

117-
<h4 id="tarball_non_standard">Installing to a custom location</h4>
118-
119-
<p>
120-
The Go binary distributions assume they will be installed in
121-
<code>/usr/local/go</code> (or <code>c:\Go</code> under Windows),
122-
but it is possible to install the Go tools to a different location.
123-
In this case you must set the <code>GOROOT</code> environment variable
124-
to point to the directory in which it was installed.
125-
</p>
126-
127-
<p>
128-
For example, if you installed Go to your home directory you should add
129-
commands like the following to <code>$HOME/.profile</code>:
130-
</p>
131-
132-
<pre>
133-
export GOROOT=$HOME/go1.X
134-
export PATH=$PATH:$GOROOT/bin
135-
</pre>
136-
137-
<p>
138-
<b>Note</b>: <code>GOROOT</code> must be set only when installing to a custom
139-
location.
140-
</p>
141-
142117
</div><!-- tarballInstructions -->
143118

144119
<div id="darwinPackageInstructions">

0 commit comments

Comments
 (0)