FiloSottile / age

A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org
BSD 3-Clause "New" or "Revised" License
16.83k stars 492 forks source link

Brew installation overwrite go local go installation #194

Closed yulrizka closed 3 years ago

yulrizka commented 3 years ago

Environment

What were you trying to do

Install age view homebrew

What happened

It replaced my installed goversion (go1.16) to (go.1.15.2)

I installed using the installer from golang website. After Installation it downgrade my golang. It seems that /usr/local/Cellar was put in front of my local go package. So when it installed go it picked that one up instead the one that the package installed (/usr/local/go)

Maybe there is a better alternatives for the go installation?

FiloSottile commented 3 years ago

Installing age with Homebrew will install Go with Homebrew as well, as it's needed to build age.

Your options are using brew unlink go to remove Homebrew's Go from /usr/local/bin, putting the manual installation of Go (/usr/local/go/bin) in front of the PATH, or upgrading the Homebrew Go (which is currently 1.16, so not sure why you got 1.15.2).

This is not something we can do anything on our side.