-
Notifications
You must be signed in to change notification settings - Fork 164
fix: hash verification in --dependency-constraints-txt could be silently skipped #1140
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
Merged
gaborbernat
merged 10 commits into
pypa:main
from
manfred-kaiser:fix/constraints-txt-multiline-hash-set-ordering
Aug 1, 2026
+50
−2
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
f36fd88
fix: join backslash continuations before parsing --dependency-constra…
manfred-kaiser b55ede4
fix: pass explicit encoding to write_text in new constraints-txt tests
manfred-kaiser 557fa0a
refactor: test through the public build_package API, tighten docstring
manfred-kaiser 5191895
Revert "refactor: test through the public build_package API, tighten …
manfred-kaiser caf72d6
Revert "fix: pass explicit encoding to write_text in new constraints-…
manfred-kaiser 7bfe736
Revert "fix: join backslash continuations before parsing --dependency…
manfred-kaiser 64a84cc
fix: pass --dependency-constraints-txt through unmodified instead of …
manfred-kaiser bd67f43
test: cover the empty-constraints-file branch
manfred-kaiser 2b22331
style: reformat changelog fragment with docstrfmt
manfred-kaiser 7be3d57
docs: clarify where the constraints join happens in the code comment
manfred-kaiser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Pass ``--dependency-constraints-txt`` files through to the installer unmodified instead of re-parsing them into a | ||
| deduplicated set of lines, fixing a case where a hashed requirement (e.g. from ``pip-compile --generate-hashes``) could | ||
| have its ``--hash`` continuation line separated from its requirement line and silently dropped, depending on the | ||
| interpreter's hash seed - by :user:`manfred-kaiser` |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.