Asdf: Reshim doesn't update asdf path

Created on 29 May 2019  路  2Comments  路  Source: asdf-vm/asdf

Steps to reproduce

$ which asdf
/usr/local/Cellar/asdf/0.7.2/bin/asdf

$ python
/Users/aris/.asdf/shims/python: line 3: /usr/local/Cellar/asdf/0.7.1/bin/asdf: No such file or directory
/Users/aris/.asdf/shims/python: line 3: exec: /usr/local/Cellar/asdf/0.7.1/bin/asdf: cannot execute: No such file or directory

$ cat ~/.asdf/shims/python
#!/usr/bin/env bash
# asdf-plugin: python 3.7.3
exec /usr/local/Cellar/asdf/0.7.1/bin/asdf exec "python" "$@"

$ asdf reshim python

$ cat ~/.asdf/shims/python
#!/usr/bin/env bash
# asdf-plugin: python 3.7.3
exec /usr/local/Cellar/asdf/0.7.1/bin/asdf exec "python" "$@"

Expected behavior

asdf reshim python should update the asdf path from 0.7.1 to 0.7.2

Actual behavior

The shim file was unchanged.

Environment

OS: OS X 10.14

asdf version: 0.7.2

bug help wanted

Most helpful comment

Re-opening this issue because a case can be made for reshim updating the exec path when it changes.

All 2 comments

This happens because my shell sourced asdf from /usr/local/Cellar/asdf/<version> instead of brew --prefix asdf. Updating the source command to the latter, and running rm -rf ~/.asdf/shims && asdf reshim recreates the shims with the correct exec path.

Re-opening this issue because a case can be made for reshim updating the exec path when it changes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dmlemos picture dmlemos  路  3Comments

rhiroyuki picture rhiroyuki  路  3Comments

michalmuskala picture michalmuskala  路  5Comments

niksfirefly picture niksfirefly  路  3Comments

point-source picture point-source  路  4Comments