Skip to content

Commit

Permalink
Sort errors during display in uv python install (#8684)
Browse files Browse the repository at this point in the history
This is important for determinism
  • Loading branch information
zanieb authored Oct 29, 2024
1 parent 2e14724 commit 6d3de9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/uv/src/commands/python/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ pub(crate) async fn install(
}

if !errors.is_empty() {
for (key, err) in errors {
for (key, err) in errors
.into_iter()
.sorted_unstable_by(|(key_a, _), (key_b, _)| key_a.cmp(key_b))
{
writeln!(
printer.stderr(),
"{}: Failed to install {}",
Expand Down

0 comments on commit 6d3de9a

Please sign in to comment.