Skip to content

Commit

Permalink
Show resolution diagnostics after pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Apr 5, 2024
1 parent 2ac562b commit b2b84b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/uv/src/commands/pip_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,17 @@ async fn resolve(
.dimmed()
)?;

// Notify the user of any diagnostics.
for diagnostic in resolution.diagnostics() {
writeln!(
printer.stderr(),
"{}{} {}",
"warning".yellow().bold(),
":".bold(),
diagnostic.message().bold()
)?;
}

Ok(resolution)
}

Expand Down

0 comments on commit b2b84b1

Please sign in to comment.