$ 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" "$@"
asdf reshim python should update the asdf path from 0.7.1 to 0.7.2
The shim file was unchanged.
OS: OS X 10.14
asdf version: 0.7.2
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.
Most helpful comment
Re-opening this issue because a case can be made for
reshimupdating the exec path when it changes.