Skip to content

Commit e94edf2

Browse files
committed
Sort errors during display in uv python install
This is important for determinism
1 parent dc5e35e commit e94edf2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,10 @@ pub(crate) async fn install(
245245
}
246246

247247
if !errors.is_empty() {
248-
for (key, err) in errors {
248+
for (key, err) in errors
249+
.iter()
250+
.sorted_unstable_by(|(key_a, _), (key_b, _)| key_a.cmp(key_b))
251+
{
249252
writeln!(
250253
printer.stderr(),
251254
"{}: Failed to install {}",

0 commit comments

Comments
 (0)