Re: [go-nuts] Re: Installing two go releases side-by-side

2016-12-16 Thread Francisco Souza
On Fri, Dec 16, 2016 at 7:05 AM, Seb Binet wrote: > > > On Fri, Dec 16, 2016 at 1:02 PM, Caleb Doxsey wrote: >> >> The easy solution here is gimme. >> >> >> $ eval "$(gimme 1.8beta2)" >> >> >> Downloads and installs go and sets all the environment variables for you. > > > there's also something h

Re: [go-nuts] Re: Installing two go releases side-by-side

2016-12-16 Thread Seb Binet
see: https://go-review.googlesource.com/c/34385/ -s On Fri, Dec 16, 2016 at 1:05 PM, Seb Binet wrote: > > > On Fri, Dec 16, 2016 at 1:02 PM, Caleb Doxsey wrote: > >> The easy solution here is gimme . >> >> >> $ eval "$(gimme 1.8beta2)" >> >> >> Downloads and

Re: [go-nuts] Re: Installing two go releases side-by-side

2016-12-16 Thread Seb Binet
On Fri, Dec 16, 2016 at 1:02 PM, Caleb Doxsey wrote: > The easy solution here is gimme . > > > $ eval "$(gimme 1.8beta2)" > > > Downloads and installs go and sets all the environment variables for you. > there's also something happening here: https://godoc.org

[go-nuts] Re: Installing two go releases side-by-side

2016-12-16 Thread Caleb Doxsey
The easy solution here is gimme . $ eval "$(gimme 1.8beta2)" Downloads and installs go and sets all the environment variables for you. On Wednesday, December 14, 2016 at 11:58:55 AM UTC-5, aind...@gmail.com wrote: > > I currently have the distribution "go v

Re: [go-nuts] Re: Installing two go releases side-by-side

2016-12-15 Thread Dave Cheney
You never need to set GOROOT and setting GOROOT will bring you confusing problems to debug in the future. On Friday, 16 December 2016 11:24:20 UTC+11, Akhil Indurti wrote: > > Yeah, I don't set $GOROOT, but $GOROOT_BOOTSTRAP in order to compile. > > Symlinking might be a good idea for convenienc

Re: [go-nuts] Re: Installing two go releases side-by-side

2016-12-15 Thread Akhil Indurti
Yeah, I don't set $GOROOT, but $GOROOT_BOOTSTRAP in order to compile. Symlinking might be a good idea for convenience, but can I use my system-wide $GOPATH to test my src, or do I duplicate that as well. Thank You On Dec 15, 2016 4:54 PM, "Dave Cheney" wrote: You can build as many different v

[go-nuts] Re: Installing two go releases side-by-side

2016-12-15 Thread Dave Cheney
You can build as many different versions of Go as you need by checking the source out into different locations and running the src/make.bash script. You should not set GOROOT, building from source will encode the correct location into the bin/go tool during the process. To make life simpler for

[go-nuts] Re: Installing two go releases side-by-side

2016-12-15 Thread Alper Köse
Hi, you can also use docker. There are official docker images in docker hub: https://hub.docker.com/_/golang/ As shown in the docker hub page, you can use the command: docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.6 go build This way you can easily use whichever versio

[go-nuts] Re: Installing two go releases side-by-side

2016-12-14 Thread aindurti
Never mind, I figured it out. As long as I export a separate $GOROOT during compile, it works fine. To sum up, I just 1. Downloaded and unpacked the source 2. cd'd into src/. exported $GOROOT_BOOTSTRAP to /usr/local/go (in my case). 3. run ./all.bash. as long as you don't add the bin