This commit is contained in:
John Mumm 2025-06-17 15:27:20 +02:00
parent f2d707b2ea
commit 3ad4ba7935
No known key found for this signature in database
GPG Key ID: 73D2271AFDC26EA8
2 changed files with 3 additions and 1 deletions

View File

@ -1445,6 +1445,8 @@ impl Lock {
queue.push_back(root);
}
// Unlike path dependencies, Git dependencies are immutable. Their sources cannot change
// without the hashes changing, so we know their indexes are still present.
while let Some(package) = queue.pop_front() {
// If the lockfile references an index that was not provided, we can't validate it.
if let Source::Registry(index) = &package.id.source {

View File

@ -27559,7 +27559,7 @@ fn lock_conflict_for_disjoint_platform() -> Result<()> {
}
/// Test that lockfile validation includes explicit indexes from path dependencies.
/// `<https://github.com/astral-sh/uv/issues/11419>`
/// <https://github.com/astral-sh/uv/issues/11419>
#[test]
fn lock_path_dependency_explicit_index() -> Result<()> {
let context = TestContext::new("3.12");