On Tue, May 8, 2018 at 9:43 AM Dave Cheney <d...@cheney.net> wrote:

> Please allow me to clarify, anyone other than Jan never needs to set
> GOROOT.
>
>
While I do agree with this advice, it unfortunately doesn't teach people as
to why it is a bad idea to set GOROOT, and what kinds of troubles you are
likely to run into.

For instance, the install-documentation on the Go website,

https://golang.org/doc/install

Mentions setting GOROOT when "installing to a custom location" (albeit with
a warning admonition).

In short, I do understand why people toy with that variable, even if it
leads to misery down the road. In general, modern UNIX systems have so many
complex layers which we built upon again and again that I feel many people
nowadays diverge into "random knob turning to see if it alleviates the
problem." GOROOT is one of them.

-- 
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