You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
poetry update doesn't respect the change of "develop" attribute #4884
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: macOS Big Sur 11.6
Poetry version: 1.1.12
Issue
When I change the develop attribute of a dependency (from false to true or vice versa) and run poetry update, the change is not respected - I get the following message:
No dependencies to install or update
Removing only poetry.lock also doesn't help - I have to uninstall the package. But I can't do it with poetry remove, because... there's no CLI flag for poetry add to specify the proper value of develop attribute when adding it back. I have to modify the file manually after that, but then package... is already installed, so we get stuck in the loop.
The solution is to run pip uninstall some_package, modify manually the pyproject.toml to change the develop value and then run poetry install.
Activity
blthayer commentedon Mar 16, 2022
Following on to @jaklan 's workaround (thank you!) for future readers: you may want to preface
pip uninstall some_packagewithpoetry run.To summarize the workaround:
poetry run pip uninstall some_packagepyproject.tomlpoetry installhuonw commentedon Mar 21, 2022
This seems to be the same as #3085.
neersighted commentedon Nov 8, 2022
Resolved in #6843, duplicate #3085.
github-actions commentedon 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.