poetry env use
and poetry env remove
are based on the directory name instead of tool.poetry.name
#1425
Labels
kind/bug
Something isn't working as expected
The
poetry env use {python}
andpoetry env remove {python}
commands incorrectly use the directory name of a project instead of thetool.poetry.name
property of thepyproject.toml
file to create/delete a virtual environment.This clashes with the
poetry add
,poetry build
,poetry install
,poetry lock
,poetry remove
,poetry run
,poetry shell
,poetry show
andpoetry update
commands which correctly use thetool.poetry.name
property of thepyproject.toml
file to implicitly create a virtual environment.Example
For instance if a virtual environment was implicitly created with
poetry install
(so based ontool.poetry.name
):and then removed with
poetry env remove python
(so based on the directory name of the project), aValueError
is raised if{directory_name}
≠{tool.poetry.name}
:FYI @stephsamson @sdispater
The text was updated successfully, but these errors were encountered: