▲ 10 ▼ update-golang is a script to easily fetch and install new Golang releases
update-golang is a script to easily fetch and install new Golang releases
Register to comment or vote on this story
update-golang is a script to easily fetch and install new Golang releases
I was thinking the other day I'd love to see the Go install be something like go get go to fetch the latest and go get go1.7.1 to fetch and activate a specific version.
You can, kind of, do it with:
sudo ./update-golang.sh ;# fetch/activate latest (1.8.1)
sudo RELEASE=1.8 ./update-golang.sh ;# fetch/activate specific version (1.8 in this case)
Yes, it'd be really nice to see this in the standard go tool though. I'm not sure why they bother with installers on Mac OS for example, and it'd be much nicer just to call the go command to update the go system too and switch between versions as well (particularly if you want to test against several versions at once).