Skip to content

Commit

Permalink
Use absolute instead of canonical paths
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Oct 2, 2024
1 parent 93a2c7c commit ec07503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/uv/src/commands/pip/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ pub(crate) fn report_target_environment(
env.root().user_display()
);

let Ok(target) = env.root().canonicalize() else {
let Ok(target) = std::path::absolute(env.root()) else {
debug!("{}", message);
return Ok(());
};
Expand All @@ -571,7 +571,7 @@ pub(crate) fn report_target_environment(
}

// Do not report a default environment path
if let Ok(default) = PathBuf::from(".venv").canonicalize() {
if let Ok(default) = std::path::absolute(PathBuf::from(".venv")) {
if target == default {
debug!("{}", message);
return Ok(());
Expand Down

0 comments on commit ec07503

Please sign in to comment.