airtonix / asdf-hledger

MIT License
1 stars 1 forks source link

Failed to install by mise on Apple Silicon #8

Open alphatroya opened 1 month ago

alphatroya commented 1 month ago

Steps to reproduce


❯ mise use -g hledger
mise ⚠️ hledger is a community-developed plugin – https://github.com/airtonix/asdf-hledger
Would you like to install hledger? Yes
asdf-hledger: arm64 is not supported
mise ~/.local/share/mise/plugins/hledger/bin/download failed
asdf-hledger: arm64 is not supported
mise ~/.local/share/mise/plugins/hledger/bin/download exited with non-zero status: exit code 1
mise Run with --verbose or MISE_VERBOSE=1 for more information
saul-salazar-dotcom commented 1 month ago

Hi @alphatroya can you run the next command and share the output?

uname -m

arm64 is supported by hledger, probably the output of that command is messing with the conditional to set the cpu architecture

alphatroya commented 1 month ago

It's prints arm64

Screenshot 2024-10-23 at 09 17 30
saul-salazar-dotcom commented 1 month ago

Hi @alphatroya, I think I fixed the problem, can you try the following (while we wait for the maintainer to merge the PR #9)

mise plugin remove hledger
mise plugin add hledger https://github.com/saul-salazar-dotcom/asdf-hledger/
mise use -g hledger

# maybe you need to add force 
mise use -g hledger --force
alphatroya commented 1 month ago

Hi @alphatroya, I think I fixed the problem, can you try the following (while we wait for the maintainer to merge the PR #9)

mise plugin remove hledger
mise plugin add hledger https://github.com/saul-salazar-dotcom/asdf-hledger/
mise use -g hledger

# maybe you need to add force 
mise use -g hledger --force

Can confirm, this fixed this issue, thx!