-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 add
updates the version of the other dependencies
#5185
Comments
Hello @zyrikby, updating existing dependency on a If you think that is not the case in your case, please provide a minimal reproducible example, so we can debug it. fin swimmer |
Interesting, I cannot now reproduce this behavior with minimum working version. However, here is the output that I've experienced in the morning: $ poetry add pyhash
Using version ^0.9.3 for pyhash
Updating dependencies
Resolving dependencies... (1.3s)
Writing lock file
Package operations: 1 install, 1 update, 0 removals
• Updating datasketch (1.5.6 -> 1.5.7)
• Installing pyhash (0.9.3) However, I updated poetry after to 1.1.13 version, this may be the explanation. |
I can reproduce this issue locally on both |
I just tested and #4618 does solve the issue I'm seeing. |
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).OS version and name: Kubuntu 20.04
Poetry version: 1.1.12
Issue
Hi there! First of all, thank you very much for this tool!
Recently, I have found out a weird behavior to me. However, maybe it poetry works as expected, so please then explain this behavior to me.
The issue is the following. When you add a new dependency to a project using the
poetry add
command, poetry also updates the versions of other libraries if the updates are available despite that the previous version is recorded in the poetry.lock file. Such behavior to me is unexpected and may lead to bugs in the developed application.The text was updated successfully, but these errors were encountered: