asdf-community / asdf-community/asdf-python
asdf poetry gets confused after a python update
- Langage dominant
- Shell
- Étoiles
- 729
- Forks
- 65
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I installed python 3.9.0 and poetry with asdf, then installed python 3.9.2 and made it the default in `~/.tool-versions`. Poetry was confused. I looked at the shim `/opt/asdf/current/shims/poetry`:
```bash
#!/usr/bin/env bash
# asdf-plugin: python 3.9.0
exec /opt/asdf/current/bin/asdf exec "poetry" "$@"
```
which I changed to 3.9.2 and added `poetry 1.1.6` to ~/.tool-versions. Then it works.
I suspect you have no control over the code in the shim. It looks generated. But if you do, it would be useful:
* to know if the script is generated and if so how to update it
* use ASDF_DIR in the exec line: `exec ${ASDF_DIR:-/opt/asdf/current}/bin/asdf exec "poetry" "$@"`
This is probably related to https://github.com/asdf-vm/asdf/issues/859.
I'm not sure this is an "issue" so much as an inconvenience. But I had to wander around a bit to figure out how to make the pieces work together. Which is umm suboptimal.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Reproduisez la configuration avec Python 3.9.0, Python 3.9.2, Poetry et ~/.tool-versions, puis inspectez /opt/asdf/current/shims/poetry et la façon dont asdf exec le résout. Vérifiez si le shim est généré et si son interpréteur et son chemin asdf suivent les versions sélectionnées. Le travail est considéré comme terminé lorsque le chemin de mise à jour documenté est clair et que le shim fonctionne après la modification de la version Python par défaut.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python, shell
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100