mise icon indicating copy to clipboard operation
mise copied to clipboard

MISE_ARCH

Open jdx opened this issue 1 year ago • 3 comments

We should have a MISE_ARCH env var which can be used to execute plugin scripts with arch -x86_64. Doing this will allow installing/running plugins in rosetta on arm macs.

Currently this can be done but it's a bit clunky:

mkdir ~/.local/mise-x86
wget https://mise.jdx.dev/mise-latest-macos-x86 ~/.local/mise-x86
~/.local/mise-x86 i java

jdx avatar Mar 25 '23 21:03 jdx

I have this exact problem. Would setting MISE_DATA_DIR dependent on the architecture currently running be a possibility?

jacobat avatar Aug 10 '23 13:08 jacobat

sorry for taking a year to respond but I think that's a good callout, it probably should default to ~/.local/share/mise-x86_64 or something

jdx avatar May 15 '24 02:05 jdx

FWIW, I've been running with an architecture dependent MISE_DATA_DIR for a long time now without issues. Mostly using it for development with Ruby.

jacobat avatar May 15 '24 06:05 jacobat