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

macOS / arm64 #306

Open
cdaguerre opened this issue Oct 29, 2021 · 6 comments
Open

macOS / arm64 #306

cdaguerre opened this issue Oct 29, 2021 · 6 comments

Comments

@cdaguerre
Copy link

In case someone else wonders, tfenv does support ARM architecture on macOS when setting a TFENV_ARCH env var to arm64.
As @kamatama41 said in the MR that introduced this env var, it should probably be resolved using uname -m rather than defaulting to amd64

@BrianMusson
Copy link

hi, this was very informative and helpful. when can we expect this to get merged?

@danielcompton
Copy link

@BrianMusson this is already merged, you can use it like this:

TFENV_ARCH=arm64 tfenv install 1.0.2

Note that 1.0.2 is the first release that was compiled for macOS arm64. Earlier versions will fail with a 403 error.

@kblcuk
Copy link

kblcuk commented Dec 7, 2021

@danielcompton yea, that works, but it would be nice if install would automatically know which arch to use :)

Though it seems that that's already the case as of d22ffb4 and abd0f46, but those commits weren't released (yet); so I guess all we have to do is to wait for next release to happen (and set local TFENV_ARCH env variable in the time being, as you suggest).

@nodesocket
Copy link

Just ran into this, and following the README.md I used arm at first, until I realized it needs to be arm64. I just added:

export TFENV_ARCH=arm64

Into my ~/.zshrc

@cron410
Copy link

cron410 commented Mar 24, 2022

It would be nice if 'tfenv' either didn't show anything older than 1.0.2 when used on Mac arm64 or just displayed a warning about this.

@cron410
Copy link

cron410 commented Mar 30, 2022

Or better yet, would fetch and compile older versions upon request when it hits a 404 on the precompiled binary.

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

No branches or pull requests

7 participants