-
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 lock adds duplicate hashes when using multiple constraint dependences #6327
Comments
relevant code should be this loop if anyone is interested in figuring out a fix: poetry/src/poetry/packages/locker.py Lines 204 to 220 in a613347
I imagine we're getting two similar package_specs and not doing anything to de-duplicate the things they have in common |
All locked filenames/hashes are duplicated once for each direct origin dependency among the multiple constraints dependencies. This issue doesn't occur in poetry 1.1 because direct origin dependencies are always updated (even with |
Thanks! I can confirm that this is fixed in Poetry master branch. |
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
With a dependency specification like
Every time I run
poetry lock --no-update
, Poetry adds duplicated hashes forpython-ldap
to thepoetry.lock
file.After the first lock command, the content ends with:
After the second run, it's:
Etc, every run adds yet another entry there.
The contents of the lockfile should be deterministic.
The text was updated successfully, but these errors were encountered: