forked from python-poetry/poetry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add --no-hash option to update, preventing metadata.content-hash
Currently when creating a lockfile, a metadata.content-hash field is generated, containing the hash of the sorted contents of pyproject.toml. However (see python-poetry#496) this causes merge conflicts, particularly when using a tool such as dependabot that makes multiple parallel branches with dependency changes. Add a --no-hash option to poetry update. This causes metadata.content-hash to be omitted. In turn poetry will later complain that the lock file may not be fresh, (although it is correct), and the user can run poetry lock to update it, after all the merges are complete. dependabot currently runs `poetry update <DEPENDENCY> --lock`, I would propose to incrporate this PR to poetry and then modify dependabot to have teh --no-hash option.
- Loading branch information
Showing
6 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters