moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
9.88k stars 520 forks source link

Install latest stable Go version #410

Open misaalanshori opened 2 years ago

misaalanshori commented 2 years ago

Is there a way to just install whatever is the latest stable version of Go? For example, NVM (Node Version Manager) has nvm install node to install the latest version or nvm install --lts to install the lts version. Would be nice if this has the same too

ankitcharolia commented 11 months ago

@misaalanshori @mlcdf kindly try this GO Version Manager: https://github.com/ankitcharolia/goenv

mlcdf commented 10 months ago

Not as convenient as a dedicated command, but this works great:

$ alias gvm_latest='gvm install $(curl -s "https://go.dev/VERSION?m=text" | head -n 1)'
$ gvm_latest                                                                           
Installing go1.21.1...