mirror of https://github.com/astral-sh/uv
This commit is contained in:
parent
f2d707b2ea
commit
3ad4ba7935
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue