From 6b80d2622780f0aaedb0389fe3003641622166f1 Mon Sep 17 00:00:00 2001 From: Nico Steinle Date: Mon, 11 May 2026 11:56:28 +0200 Subject: [PATCH] Sort artifact list alphabetically Sort the artifact output vector by the artifacts' lowercase path names before printing. This makes the "Packages created" output easier to scan. - Printing still uses the original path form. Signed-off-by: Nico Steinle --- src/commands/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/build.rs b/src/commands/build.rs index a07b24cb..1d8a11d3 100644 --- a/src/commands/build.rs +++ b/src/commands/build.rs @@ -423,6 +423,7 @@ pub async fn build( if !artifacts.is_empty() { writeln!(outlock, "Packages created:")?; } + artifacts.sort_by_key(|a| a.as_ref().to_string_lossy().to_lowercase()); artifacts.into_iter().try_for_each(|artifact_path| { writeln!(outlock, "{}", staging_dir.join(artifact_path).display()).map_err(Error::from) })?;