asdf-community / asdf-community/asdf-python

asdf poetry gets confused after a python update

Abierto
#101 3 comentarios 2 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Shell
Estrellas
729
Forks
65
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Reproduce la configuración usando Python 3.9.0, Python 3.9.2, Poetry y ~/.tool-versions; después, inspecciona /opt/asdf/current/shims/poetry y cómo asdf exec lo resuelve. Comprueba si el shim se genera y si su intérprete y su ruta de asdf siguen las versiones seleccionadas. Se considera terminado cuando el proceso de actualización documentado está claro y el shim funciona después de cambiar la versión de Python predeterminada.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python, shell
Área
tooling
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.