fredZen / asdf-babashka

Eclipse Public License 1.0
3 stars 11 forks source link

Cannot install on m1 mac #3

Open johnjelinek opened 2 years ago

johnjelinek commented 2 years ago

Describe the bug

I ran asdf plugin update babashka and now I can't install babashka anymore.

Steps to reproduce

$ asdf install babashka latest
* Downloading babashka release 0.8.2...
~/.asdf/plugins/babashka/bin/../lib/utils.bash: line 52: arch: unbound variable
rm: ~/.asdf/installs/babashka/0.8.2/babashka-0.8.2.: No such file or directory
asdf-babashka: Expected ~/.asdf/installs/babashka/0.8.2/bin/bb to be executable.
asdf-babashka: An error ocurred while installing babashka 0.8.2.

Expected behavior

$ asdf install babashka 0.8.2
babashka 0.8.2 is already installed

Additional Context

$ uname -m
arm64
johnjelinek commented 2 years ago

Regression commit: https://github.com/fredZen/asdf-babashka/commit/37fc5db62cb63e74e3b1d8c91cda40b220161eb2

johnjelinek commented 2 years ago

This could be another way to tackle it: https://github.com/asdf-community/asdf-hashicorp#environment-variable-options, eg: an environment variable to force an arch ASDF_HASHICORP_OVERWRITE_ARCH

borkdude commented 1 year ago

There is a fork which solves this problem for now:

asdf plugin add babashka https://github.com/mkarp/asdf-babashka.git
borkdude commented 1 year ago

See https://github.com/fredZen/asdf-babashka/pull/5#issuecomment-1380463910:

Pitch is now maintaining a fork of this repo:

asdf plugin add babashka https://github.com/pitch-io/asdf-babashka