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
Compute the sha256 when downloading a distribution (both source dist and wheel), store them in the cache (and make sure to keep in sync with cache invalidation) or check that they match the File description (TODO: Does this have a perf impact? If yes, do we always want to do this or only if the registry doesn't tell us the sha?)
When installing, check the hashes
Ignore distribution with mismatching hashes: A better matching wheel might have been uploaded since the lockfile was created, but we have to ignore it in hash checking more and fall back to the next file. Report when there is no distribution because non matched the hashes (but would without hashes)
Reacted by Dave Brondsema, Peter Baumgartner, T-256, Cal Jacobson, Maciej Olko, José Silva, samineer, AdemFr, Assaf Schwartz, Ran Benita and 9 more
Reacted by Paolo Melchiorre, Volodymyr and Assaf Schwartz
Activity
[-]Support Hash-checking mode in `pip-sync`[/-][+]Support hash-checking mode in `pip-sync`[/+]charliermarsh commentedon Apr 4, 2024
I've started to work on this. Doing something I've never done, sharing my existing notes on how it works: https://astral-sh.notion.site/Hash-checking-in-uv-fd27f5a51e8f4f5f8547a183fbf3e006
Add hash-checking support to `install` and `sync` (#2945)