Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Updating asdf did not update version number in shim paths #1147

Closed
AndrewRayCode opened this issue Jan 3, 2022 · 10 comments
Closed

bug: Updating asdf did not update version number in shim paths #1147

AndrewRayCode opened this issue Jan 3, 2022 · 10 comments
Labels

Comments

@AndrewRayCode
Copy link

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                       git@github.com:danhper/asdf-python.git master 57a4d72
ruby                         git@github.com:asdf-vm/asdf-ruby.git master d0e5a20
terraform                    git@github.com:Banno/asdf-hashicorp.git master 307f78c

asdf plugins affected (if relevant)

No response

@baens
Copy link

baens commented Jan 5, 2022

I'm having the same issue and asdf reshim doesn't seem to fix the problem

@baens
Copy link

baens commented Jan 5, 2022

A small workaround is to remove the plugin, then install it again.

@slehman
Copy link

slehman commented Jan 5, 2022

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.

@alecho
Copy link

alecho commented Jan 7, 2022

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.

Confirming removing the directory and reshimming worked for me as well.

@duderman
Copy link

same here

@jasonwc
Copy link

jasonwc commented Jan 28, 2022

Another grateful developer here. Moving the shims dir and asdf reshim worked for me.

@jnishina
Copy link

jnishina commented Feb 4, 2022

^^ thank you @slehman

@Johnsalzarulo
Copy link

+1 Moving the shims dir and asdf reshim worked

@jfly
Copy link

jfly commented Apr 8, 2022

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).

@jthegedus
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants