$ go version |
The idea is good but:
- it needs to modify the path to add GOROOT/bin and GOPATH/bin to it
- it should allow for multiple versions of Go to be installed simultaneously (including 1.x.y vs 1.x.z versions)
- it should change the PATH on all three OSes regardless of the shell used, which is the hardest part I guess (as this is the part that trips over most of the people, along with the GOPATH requirement)
Thank you.
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,The idea is good but:
- it needs to modify the path to add GOROOT/bin and GOPATH/bin to it
- it should allow for multiple versions of Go to be installed simultaneously (including 1.x.y vs 1.x.z versions)
- it should change the PATH on all three OSes regardless of the shell used, which is the hardest part I guess (as this is the part that trips over most of the people, along with the GOPATH requirement)
Thank you.
Hello Steve, that looks very promising, thank you so much!
I just tried on GCE, here is a gist.
Possible quirk :go: cannot find GOROOT directory: /usr/local/go
$ go version
$ go doc fmt
go: cannot find GOROOT directory: /usr/local/go
$ go get github.com/gorilla/mux
go: cannot find GOROOT directory: /usr/local/go
Note that I didn't try to sudo anything.
Questions:
- is it recommanded to set the GOPATH variable, even since 17262 and go 1.8 seem to regard ~/go as a cromulent default?
- might it be possible to avoid to extra step "One more thing! ... ... ... or open a new shell prompt", by sourcing everything needed? Something like
curl -LO https://get.golang.org/$(uname)/go_installer_script && source go_installer_script
On Tuesday, August 1, 2017 at 7:49:32 PM UTC-4, Florin Pățan wrote:Hi,The idea is good but:
- it needs to modify the path to add GOROOT/bin and GOPATH/bin to itIt does. If it didn't do this you've found a bug. Please report it.
- it should allow for multiple versions of Go to be installed simultaneously (including 1.x.y vs 1.x.z versions)
Out of scope for this tool, though it can do it with passing along flag arguments
- it should change the PATH on all three OSes regardless of the shell used, which is the hardest part I guess (as this is the part that trips over most of the people, along with the GOPATH requirement)
There's no such thing. ENV variables are shell specific. The PATH is defined in the shell initialization script on *nix. It literally tells the shell what directories to look in. On Windows it does this as the PATH is set by an OS call directly. Unfortunately bash on Windows ignores it.
Thank you.
-j
-j
--