bug: Updating asdf did not update version number in shim paths
Describe the Bug
After updating asdf from 0.8.1.1 to 0.9.0, in my ~/.asdf/shims folder, I have lots of shims pointing to the older version:
~/.asdf/shims $ rg 0.8.1
python
6:exec /usr/local/Cellar/asdf/0.8.1_1/libexec/bin/asdf exec "python" "$@"
pip3
6:exec /usr/local/Cellar/asdf/0.8.1_1/libexec/bin/asdf exec "pip3" "$@"
etc
Steps to Reproduce
Install asdf with homebrew
Update asdf with homebrew
Expected Behaviour
Shims to be updated
Actual Behaviour
Shims point to nonexistent older asdf version
Environment
$ asdf info
OS:
Darwin andrew.ray-pro 20.6.0 Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64 x86_64
SHELL:
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)
Copyright (C) 2007 Free Software Foundation, Inc.
ASDF VERSION:
v0.9.0
ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/usr/local/Cellar/asdf/0.9.0/libexec
ASDF INSTALLED PLUGINS:
python [email protected]:danhper/asdf-python.git master 57a4d72
ruby [email protected]:asdf-vm/asdf-ruby.git master d0e5a20
terraform [email protected]:Banno/asdf-hashicorp.git master 307f78c
asdf plugins affected (if relevant)
No response
I'm having the same issue and asdf reshim doesn't seem to fix the problem
A small workaround is to remove the plugin, then install it again.
Ran into the same issue. My workaround was to rename the ~/.asdf/shims directory and run asdf reshim. That forces asdf to recreate the shims directory and regenerate all of the shims using the updated envvar for ASDF_DIR.
Ran into the same issue. My workaround was to rename the
~/.asdf/shimsdirectory and runasdf reshim. That forcesasdfto recreate theshimsdirectory and regenerate all of the shims using the updated envvar forASDF_DIR.
Confirming removing the directory and reshimming worked for me as well.
same here
Another grateful developer here. Moving the shims dir and asdf reshim worked for me.
^^ thank you @slehman
+1 Moving the shims dir and asdf reshim worked
I think we should close this issue. AFAICT, this is a dupe of https://github.com/asdf-vm/asdf/issues/1103. I tried to write up a very detailed explanation of things over on https://github.com/asdf-vm/asdf/issues/1103#issuecomment-1093094933.
I think we should close this issue. AFAICT, this is a dupe of #1103. I tried to write up a very detailed explanation of things over on #1103 (comment).
Taking this advice and closing this in favour of #1103