Skip to content

Commit

Permalink
Treat mismatched directory and file urls as unsatisfied requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jun 18, 2024
1 parent e486eb8 commit 4441c30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/uv-installer/src/satisfies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ impl RequirementSatisfaction {
trace!(
"Path mismatch: {:?} vs. {:?}",
requested_path,
installed_path
installed_path,
);
return Ok(Self::Satisfied);
return Ok(Self::Mismatch);
}

if !ArchiveTimestamp::up_to_date_with(
Expand Down Expand Up @@ -237,9 +237,9 @@ impl RequirementSatisfaction {
trace!(
"Path mismatch: {:?} vs. {:?}",
requested_path,
installed_path
installed_path,
);
return Ok(Self::Satisfied);
return Ok(Self::Mismatch);
}

if !ArchiveTimestamp::up_to_date_with(
Expand Down

0 comments on commit 4441c30

Please sign in to comment.