Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poetry update repeatedly reinstalls dependencies #4669

Closed
3 tasks done
AnOctopus opened this issue Oct 22, 2021 · 2 comments
Closed
3 tasks done

poetry update repeatedly reinstalls dependencies #4669

AnOctopus opened this issue Oct 22, 2021 · 2 comments
Labels
kind/bug Something isn't working as expected

Comments

@AnOctopus
Copy link

  • 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

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 run poetry 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, but poetry show $PACKAGE indicates it is correctly downgraded. This makes me think poetry 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 with pyenv and then setting it for poetry with poetry env use $PATH_TO_PYENV_PYTHON_BINARY. Poetry is provided by my OS package manager rather than through the installer script.

@AnOctopus AnOctopus added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 22, 2021
@logan-bobo
Copy link
Member

HI, @AnOctopus it looks as if this issue has been fixed in a later version of poetry I have tested this on 1.2.2, and the issue is resolved. Updating to the latest version should fix this 🙌

@logan-bobo logan-bobo removed the status/triage This issue needs to be triaged label Oct 31, 2022
Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants