On Fri, Feb 3, 2017 at 1:08 AM, 'pfitzsimons' via golang-nuts
<golang-nuts@googlegroups.com> wrote:
> I guess the reference to GOROOT can be removed now, is there a reason its
> still in the install docs? as Dave say's in a galaxy a long time ago
> https://dave.cheney.net/2013/06/14/you-dont-need-to-set-goroot-really
>
>
> "Installing to a custom location
>
> The Go binary distributions assume they will be installed in /usr/local/go
> (or c:\Go under Windows), but it is possible to install the Go tools to a
> different location. In this case you must set the GOROOT environment
> variable to point to the directory in which it was installed.
>
> For example, if you installed Go to your home directory you should add the
> following commands to $HOME/.profile:
>
> export GOROOT=$HOME/go
> export PATH=$PATH:$GOROOT/bin
>
> Note: GOROOT must be set only when installing to a custom location."

As far as I know this is still correct: if you install a binary
distribution, and you install it to a location other than the one
where it expects to be installed, then you must set GOROOT.  Fixing
this is https://golang.org/issue/18678 .

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to