uv/crates/uv-distribution/src
Charlie Marsh 0d62e62fb7
Make hash-checking failure mode stricter and safer (#2997)
## Summary

If there are no hashes for a given package, we now return
`Validate(&[])` so that the policy is impossible to satisfy. Previously,
we returned `None`, which is always satisfied.

We don't really ever expect to hit this, because we detect this case in
the resolver and raise a different error. But if we have a bug
somewhere, it's better to fail with an error than silently let the
package through.
2024-04-11 17:53:34 +00:00
..
index Support unnamed requirements in `--require-hashes` (#2993) 2024-04-11 11:26:50 -04:00
source Add `--find-links` source distributions to the registry cache (#2986) 2024-04-11 01:25:58 +00:00
archive.rs Store IDs rather than paths in the cache (#2985) 2024-04-10 21:07:51 -04:00
distribution_database.rs Store IDs rather than paths in the cache (#2985) 2024-04-10 21:07:51 -04:00
download.rs Add hash-checking support to `install` and `sync` (#2945) 2024-04-10 19:09:03 +00:00
error.rs Make hash-checking failure mode stricter and safer (#2997) 2024-04-11 17:53:34 +00:00
git.rs Remove redirects from the resolver (#2792) 2024-04-03 02:43:57 +00:00
lib.rs Create dedicated abstractions for `.rev` and `.http` pointers (#2977) 2024-04-10 17:30:27 -04:00
locks.rs Rename to `uv` (#1302) 2024-02-15 11:19:46 -06:00
reporter.rs Use PEP 517 build hooks to resolve unnamed requirements (#2604) 2024-03-22 03:20:40 +00:00