-3

I was trying to install a specific go version on my workstation by specifying the semantic version. What I meant by semantic versioning is the version number of the form <major>.<minor>.<patch>. For instance, to install go version go1.13.4 I was trying this:

brew install go@1.13.4

No luck! It says Error: No available formula with the name "go@1.13.4"

Tux
  • 30
  • 3
  • Install Go from the official website in any version you want (you want latest) and not via brew. ā€“ Volker Sep 18 '20 at 05:08
  • You can, just not with the patch: `brew install go@1.13`. Installing a specific patch is a niche need Iā€™m not sure Homebrew wants to support. ā€“ bfontaine Sep 18 '20 at 12:35
  • Does this answer your question? [Homebrew install specific version of formula?](https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula) ā€“ inanc Nov 07 '20 at 18:09

2 Answers2

0

If you want to be able to easily switch between and maintain multiple versions of go, I suggest using Go Version Manager (similar to nvm(node version manager) and rvm(ruby version manager))

https://github.com/moovweb/gvm

It's a great tool. I'd also suggest first installing the latest version go using the installer, then use GVM to install and use other versions (go compiler is now written in go after version 1.1 i believe)

John
  • 777
  • 5
  • 12
0

You can download GoLang's binaries and set as GOROOT. If you will need to change version of go, download required binaries and switch GOROOT.

kozmo
  • 2,246
  • 1
  • 19
  • 35