poetry update
repeatedly reinstalls dependencies
#4669
Labels
kind/bug
Something isn't working as expected
poetry update
repeatedly reinstalls dependencies
#4669
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Arch Linux
Poetry version: 1.1.11
Link of a Gist with the contents of your pyproject.toml file: here
Issue
Similar to
poetry update
constantly reinstalls dependencies installed from custom repositories #4385except their circumstances do not appear to apply.
When I change a dependency (or a new version is released for one),
poetry update
says it is updating the versions, as expected. But if I runpoetry update
again, it will once again output that it is updating from the old version to the new one.poetry show $PACKAGE
indicates the newer version is installed.Probably related, if I undo a change to
pyproject.toml
that prompted the update,poetry update
indicates there are no dependencies to update, butpoetry show $PACKAGE
indicates it is correctly downgraded. This makes me thinkpoetry update
isn't getting an updated view of what packages are installed.With the provided gist, I can trigger this behavior by changing the version for
keras
to"*"
and back, for example.Project configuration/setup info (in case it is relevant):
I have
virtualenvs.in-project
enabled in my global config. I create my local venv by installing specific python versions withpyenv
and then setting it for poetry withpoetry env use $PATH_TO_PYENV_PYTHON_BINARY
. Poetry is provided by my OS package manager rather than through the installer script.The text was updated successfully, but these errors were encountered: