-
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
Cleanup hash checking #3423
Cleanup hash checking #3423
Conversation
Previously a downloaded package was checked against all available hashes. This is now changed to only allow the hash from the lock file matching the current archive name. The user experience benefits with more precise error messages: The use can now differenciate if the hash does not match or if the file is not present in the lock file.
Links without matching hash are already yanked before sorting.
@FlorianLudwig can you elaborate on the current hash validation gap? Wondering if there's a separate issue for that |
@JonZeolla the current gap is not a gap, in the current version hashes are not validated at all. So yeah, there is more than one issue See this mr: The missing This MR here is an improvement for the validation. |
Thank you for the details |
@JonZeolla also see #2422 edit, I just updated the other MRs title to better reflect the current situation |
Feel free to correct me if I'm wrong, but I'm reasonably sure that #4740 obsoletes this PR for the most part. Pointing out follow-up work that is not included in that PR but is in this one would be appreciated. I'm currently in the process of working out some more test coverage for that PR -- it will be ready soon. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Check List
Depends on python-poetry/poetry-core#113
Further improves: #2422
What is this about
There are two points where checksum are (supposed to be*) validated in poetry:
This MR changes a few things:
Open TODOs