asdf-vm / asdf

Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
https://asdf-vm.com/
MIT License
22.12k stars 788 forks source link

bug: ASDF_DIR always bring 0.14.0 after upgrade #1784

Open agungwas opened 1 month ago

agungwas commented 1 month ago

Describe the Bug

i'm upgrading from 0.14.0 to 0.14.1 using homebrew. after upgrade it it give this ╰─>$ asdf Unknown command:asdf /opt/homebrew/Cellar/asdf/0.14.1/libexec/bin/asdf: line 120: /opt/homebrew/Cellar/asdf/0.14.0/libexec/lib/commands/command-help.bash: No such file or directory the asdf

Steps to Reproduce

  1. brew uninstall asdf --zap
  2. echo $ASDF_DIR got /opt/homebrew/Cellar/asdf/0.14.0/libexec
  3. brew install asdf
  4. asdf got Unknown command:asdf /opt/homebrew/Cellar/asdf/0.14.1/libexec/bin/asdf: line 120: /opt/homebrew/Cellar/asdf/0.14.0/libexec/lib/commands/command-help.bash: No such file or directory

Expected Behaviour

the env var for $ASDF_DIR should upgraded too

Actual Behaviour

when call asdf, got different version in

Environment

cannot do that

asdf plugins affected (if relevant)

No response

jthegedus commented 1 month ago

Have you checked the Homebrew repo to see if this been raised over there? We don't control how Homebrew upgrades software or maintain the Homebrew stuff.