Re: [go-nuts] Re: How to manage multiple versions of Go?

2017-06-26 Thread fgergo
Sorry, I'll correct myself: godoc.org/golang.org/x/build/version only handles the listed directories. Though if for example you copy an existing directory to go1.8.3 and trivially modify main.go You'll have this: C:\>go build golang.org/x/build/version/go1.8.3 C:\>go1.8.3 version go1.8.3: not

Re: [go-nuts] Re: How to manage multiple versions of Go?

2017-06-26 Thread fgergo
You can also 'go get' most go versions and it's quite robust. https://twitter.com/golang/status/875117556595515392 On Mon, Jun 26, 2017 at 5:17 PM, Igor Maznitsa wrote: > mvn-golang plugin also allows to automate work with multiple versions of Go > > -- > You received this

[go-nuts] Re: How to manage multiple versions of Go?

2017-06-26 Thread Igor Maznitsa
mvn-golang plugin also allows to automate work with multiple versions of Go -- 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

Re: [go-nuts] Re: How to manage multiple versions of Go?

2017-06-25 Thread Rob Pike
I just use the shell for this: % cat bin/go1.4 #!/bin/sh export GOARCH=amd64 export GOOS=darwin export GOROOT=/home/r/go1.4 # Note! export GOBIN=$GOROOT/bin exec $GOBIN/go "$@" % Then when I want to run Go 1.4 tests, I just say "go1.4 build" instead of "go build". -rob On Mon, Jun 26, 2017

Re: [go-nuts] Re: How to manage multiple versions of Go?

2017-06-25 Thread Jesper Louis Andersen
On Sun, Jun 25, 2017 at 4:36 PM Christoph Berger < christoph.g.ber...@gmail.com> wrote: > Thanks to the Go 1 Compatibility Promise, it was never a problem for me to > always use the latest Go version (via Homebrew, BTW, which keeps my Go > installation up-to-date with next-to-zero effort). > >

[go-nuts] Re: How to manage multiple versions of Go?

2017-06-25 Thread buddyspike
If you want to build with different versions of go, you could play with PATH during build. Perhaps a better option is to use a container with go toolchain pre-configured for each version. For example https://hub.docker.com/r/buddyspike/go/~/dockerfile/ On Sunday, 25 June 2017 06:12:38 UTC+10,

[go-nuts] Re: How to manage multiple versions of Go?

2017-06-25 Thread st ov
Could you go into a bit more detail on how you would setup a local docker container for your Go development? Also how does the following experience relate to the compatibility promise? https://github.com/moovweb/gvm#background Thanks! On Sunday, June 25, 2017 at 7:36:20 AM UTC-7, Christoph

[go-nuts] Re: How to manage multiple versions of Go?

2017-06-25 Thread Christoph Berger
Thanks to the Go 1 Compatibility Promise, it was never a problem for me to always use the latest Go version (via Homebrew, BTW, which keeps my Go installation up-to-date with next-to-zero effort). If I ever have the need to use an older version, I'd probably use Docker for that. Advantages