-
Notifications
You must be signed in to change notification settings - Fork 66
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
requirement, resolvelib: Hash package contents to verify requirement file hashes #462
Conversation
Just pushing for visibility, this is not ready. Still needs tests, refinement, etc. In order to get this to work, I've had to push hashed requirements file down the dependency resolution path where we can no longer take advantage of the fact that these files are guaranteed to be fully resolved. We could potentially do something like get hack the There's some really ugly bits here that I'm not super pleased with. I'll sleep on it and come back to it tomorrow but if anyone has a better design, I'd be glad to hear it. |
requirement file hashes to selected candidates
This reverts commit 0d2f415.
having unresolved dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! A few small nits, but overall this looks great!
(We should also make sure to add a CHANGELOG
entry before merging.)
## [2.5.1] ### Fixed * Fixed a crash on Windows caused by multiple open file handles to input requirements ([#551](pypa/pip-audit#551)) ## [2.5.0] ### Changed * Improved error messaging when a requirements input or indirect dependency has an invalid (non-PEP 440) requirements specifier ([#507](pypa/pip-audit#507)) * `pip-audit`'s handling of dependency resolution has been significantly refactored and simplified ([#523](pypa/pip-audit#523)) ### Fixed * Fixed a potential crash on invalid unicode in subprocess streams ([#536](pypa/pip-audit#536)) ## [2.4.15] **YANKED** ### Fixed * Fixed an issue where hash checking would fail when using third-party indices ([#462](pypa/pip-audit#462)) * Fixed the behavior of the `--skip-editable` flag, which had regressed with an internal API change ([#499](pypa/pip-audit#499)) * Fixed a dependency resolution bug that can potentially be triggered when multiple packages have the same subdependency ([#488](pypa/pip-audit#488))
Closes #433