diff --git a/crates/uv-resolver/src/lock/mod.rs b/crates/uv-resolver/src/lock/mod.rs index d5f9485ba..ba9150b6f 100644 --- a/crates/uv-resolver/src/lock/mod.rs +++ b/crates/uv-resolver/src/lock/mod.rs @@ -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 { diff --git a/crates/uv/tests/it/lock.rs b/crates/uv/tests/it/lock.rs index e0e04c118..62575de31 100644 --- a/crates/uv/tests/it/lock.rs +++ b/crates/uv/tests/it/lock.rs @@ -27559,7 +27559,7 @@ fn lock_conflict_for_disjoint_platform() -> Result<()> { } /// Test that lockfile validation includes explicit indexes from path dependencies. -/// `` +/// #[test] fn lock_path_dependency_explicit_index() -> Result<()> { let context = TestContext::new("3.12");