How to choose between arm64 or amd64 version on macOS?
genkin-he opened this issue · 1 comments
genkin-he commented
How to choose between arm64 or amd64 version on macOS?
stefanmaric commented
You can force the architecture with the -a
/--arch
argument, for example:
g install --arch amd64 1.22.0
I just did notice that the argument gets ignored if you have the same version number for a different architecture installed already, I will fix it when I get a chance. To work around it, you can remove
such version and run the install
with the --arch
:
$ go version
go version go1.22.0 darwin/arm64
$ g remove 1.22.0
remove: 1.22.0
$ g install --arch amd64 1.22.0
selected: 1.22.0
location: /Users/sam/.go/.versions/1.22.0
downloading: https://dl.google.com/go/go1.22.0.darwin-amd64.tar.gz
downloaded: 1.22.0
installed: go version go1.22.0 darwin/amd64