uv/crates/uv-resolver
Charlie Marsh 96c3c2e774
Support unnamed requirements in --require-hashes (#2993)
## Summary

This PR enables `--require-hashes` with unnamed requirements. The key
change is that `PackageId` becomes `VersionId` (since it refers to a
package at a specific version), and the new `PackageId` consists of
_either_ a package name _or_ a URL. The hashes are keyed by `PackageId`,
so we can generate the `RequiredHashes` before we have names for all
packages, and enforce them throughout.

Closes #2979.
2024-04-11 11:26:50 -04:00
..
src Support unnamed requirements in --require-hashes (#2993) 2024-04-11 11:26:50 -04:00
tests Add support for URL requirements in --generate-hashes (#2952) 2024-04-10 20:02:45 +00:00
Cargo.toml Surface invalid metadata as hints in error reports (#2850) 2024-04-09 23:12:10 -04:00