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 lock adds duplicate hashes when using multiple constraint dependences #6327
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 --no-update flag). I created a PR to fix this regression.
Activity
dimbleby commentedon Sep 1, 2022
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
radoering commentedon Sep 3, 2022
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
--no-updateflag). I created a PR to fix this regression.intgr commentedon Sep 5, 2022
Thanks! I can confirm that this is fixed in Poetry master branch.
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.