jtakakura / asdf-odin

Odin plugin for the asdf version manager github.com/asdf-vm/asdf
https://github.com/asdf-vm/asdf
MIT License
9 stars 7 forks source link

Cannot install dev-2024-07 (macOS and linux) #7

Closed achou11 closed 3 months ago

achou11 commented 4 months ago

Describe the bug

Potentially similar in nature to #4 , ~but this time on macOS 😅~ this is happening on both macOS and linux

Using this plugin with mise and trying to upgrade from dev-2024-06 to dev-2024-07. I get the following install error:

cp: /Users/andrewchou/.local/share/mise/downloads/odin/dev-2024-07/dist/*: No such file or directory
chmod: /Users/andrewchou/.local/share/mise/installs/odin/dev-2024-07/bin/odin: No such file or directory

Looks like the fix from #5 introduced this issue. I commented out the following lines that the PR introduced, which allowed me to install it successfully:

https://github.com/jtakakura/asdf-odin/blob/4f75aab701392d76b869fba46fc72f063093c0ae/lib/utils.bash#L64-L65

My guess is that this line in bin/download doesn't play well with the changes that were introduced from that PR (maybe it's specific to macOS?):

https://github.com/jtakakura/asdf-odin/blob/4f75aab701392d76b869fba46fc72f063093c0ae/bin/download#L36

Steps to reproduce

I'm using mise, but probably reproducible with asdf:

mise install odin@dev-2024-07

Expected behavior

Installation should work without issue