mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
Respect dynamic version updates in uv lock
(#8867)
## Summary Closes https://github.com/astral-sh/uv/issues/8866.
This commit is contained in:
parent
814b4d159c
commit
987d778631
2 changed files with 131 additions and 0 deletions
|
@ -1224,6 +1224,15 @@ impl Lock {
|
|||
}
|
||||
};
|
||||
|
||||
// Validate the `version` metadata.
|
||||
if metadata.version != package.id.version {
|
||||
return Ok(SatisfiesResult::MismatchedVersion(
|
||||
package.id.name.clone(),
|
||||
package.id.version.clone(),
|
||||
Some(metadata.version.clone()),
|
||||
));
|
||||
}
|
||||
|
||||
// Validate the `requires-dist` metadata.
|
||||
{
|
||||
let expected: BTreeSet<_> = metadata
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue