Skip to content

Commit 5280eab

Browse files
committed
Sort errors during display in uv python install
This is important for determinism
1 parent 222cf26 commit 5280eab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/uv/src/commands/python/install.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,10 @@ pub(crate) async fn install(
322322
}
323323

324324
if !errors.is_empty() {
325-
for (key, err) in errors {
325+
for (key, err) in errors
326+
.iter()
327+
.sorted_unstable_by(|(key_a, _), (key_b, _)| key_a.cmp(key_b))
328+
{
326329
writeln!(
327330
printer.stderr(),
328331
"{}: Failed to install {}",

0 commit comments

Comments
 (0)