Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to choose between arm64 or amd64 version on macOS? #36

Open
genkin-he opened this issue Mar 30, 2023 · 1 comment
Open

How to choose between arm64 or amd64 version on macOS? #36

genkin-he opened this issue Mar 30, 2023 · 1 comment

Comments

@genkin-he
Copy link

No description provided.

@stefanmaric
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants