-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 uninstalls all dependencies when removing any dependency via poetry remove
#4632
Comments
poetry remove
poetry remove
I think I'm observing this in e.g.
To be clear, this results in |
I'm also observing this in I've generally interrupted the uninstall process before it completed, so I'm unsure if mine would also uninstall all the way down through |
Fix an issue where all default dependencies were removed instead of just the selected one (fixes python-poetry#4632)
This is still an issue in |
@nikokaoja You need to install Poetry 1.2.0b1. Only the latest (beta) release has the required poetry-core dependency that contains the bug fix. For reference: poetry-core 1.1.0a7 (and newer) contains the relevant fix. |
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. |
-vvv
option).Issue
When removing a dependency via
poetry remove
, poetry will uninstall every dependency in thepyproject.toml
. It will however not remove them frompyproject.toml
. This behavior exists for packages without any interdependence whatsoever.Output of running
poetry remove tqdm -vvv
on the providedpyproject.toml
:A subsequent
poetry update
will re-install all previously unnecessarily removed packages.The text was updated successfully, but these errors were encountered: