asdf-community / asdf-community/asdf-python
Fail to execute python after upgrading asdf by Homebrew
- Vorherrschende Sprache
- Shell
- Sterne
- 729
- Forks
- 65
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Provide environment information
```bash
OS:
Darwin VLAN2-dhcp147.is.env.kitakyu-u.ac.jp 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:59:33 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8112 arm64
SHELL:
zsh 5.9 (x86_64-apple-darwin23.0)
BASH VERSION:
3.2.57(1)-release
ASDF VERSION:
v0.14.0
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/Users/matsumotokanta/.asdf
ASDF_DIR=/opt/homebrew/opt/asdf/libexec
ASDF_CONFIG_FILE=/Users/matsumotokanta/.asdfrc
ASDF INSTALLED PLUGINS:
python https://github.com/danhper/asdf-python.git master 5e277e2
```
### To Reproduce
1. Install asdf 0.13.1 by Homebrew
2. Install asdf-python
3. Install some version of python
4. `brew update`
5. `brew upgrade`
6. Then asdf is updated from 0.13.1 to 0.14.0
### Describe the Bug
I ran `python --version`.
Then I got the following error:
```
$HOME/.asdf/shims/python: line 3: /opt/homebrew/Cellar/asdf/0.13.1/libexec/bin/asdf: No such file or directory
```
So I edited `$HOME/.asdf/shims/python` to modify the version of asdf.
I feel this is a bug.
### Expected Behaviour
When `brew upgrade` upgrades asdf, the script should modify the installed shims script to update the version of asdf.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne mit der Untersuchung von $HOME/.asdf/shims/python und des Shim-Verhaltens des asdf-python-Plugins im Zusammenhang mit den Homebrew-Upgrade-Schritten. Reproduziere das Upgrade von asdf 0.13.1 auf 0.14.0 und überprüfe anschließend, dass die Ausführung von python --version ohne manuelles Bearbeiten des Shims funktioniert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python, shell
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100