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

[Mac M1] Mutliple arch of the same version #81

Open
dimasdanz opened this issue May 13, 2022 · 1 comment
Open

[Mac M1] Mutliple arch of the same version #81

dimasdanz opened this issue May 13, 2022 · 1 comment

Comments

@dimasdanz
Copy link

Is your feature request related to a problem? Please describe.
There are several projects that is immediately compilable on arm. It does not require using installing go using ASDF_GOLANG_OVERWRITE_ARCH. But there are projects that is not immediately compilable due to its dependency not having arm build (i.e. that depends on this), so using ASDF_GOLANG_OVERWRITE_ARCH

Problem arise if there are project of both type that needs to run on the same version

Describe the solution you'd like
Something like this should work

asdf install golang 1.17-darwin-arm64
asdf install golang 1.17-darwin-amd64

It should not change the default behaviour of asdf install golang 1.17, it still install the current arch.

Describe alternatives you've considered
What I do right now is to use different patches for different arch on the same major version. i.e.

  1. go1.18.2 -> this is using darwin-arm64 (m1)
  2. go1.18.1 -> this is using darwin-amd64 (running under rosetta, i guess?)

Thank you

@kennyp
Copy link
Member

kennyp commented Dec 17, 2022

Interesting idea. So in this case you would have to set the full version with arch in the project's .tool-versions or it would fall back to the default for that version?

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

No branches or pull requests

2 participants