From bf69db04dd051d3564c3faf110f55148fd794150 Mon Sep 17 00:00:00 2001 From: selune <35337584+0xlillith@users.noreply.github.com> Date: Fri, 23 Oct 2026 19:21:05 +0200 Subject: [PATCH] Normalize UI container violation paths across platforms (#5599) Report repository-relative paths with forward slashes so diagnostics and the existing nested-package regression assertions agree on Windows and Unix. Keep the container detection rules unchanged. Validation: official ui-containers gate and all seven focused xtask tests passed; rustfmt and diff checks passed. Only xtask/dependencies were compiled; no application build or heavy tests. (cherry picked from commit 44b58d8e103a5fbc816ebf7c22b8de768ddf592b) Scoped render-branch prerequisite from #4507, coordinated under #5493. No unrelated translation/kernel changes are included. Fresh Windows fmt, seven ui_containers regressions and the production container gate pass on render base 3a6153d18f4f1bf70c6ed8ab3df3711461366509. Full CI is reserved for final render-to-main acceptance under the maintainer policy. Co-authored-by: Victor Santos Oliveira <56417388+Vittuu@users.noreply.github.com> --- xtask/src/ui_containers.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xtask/src/ui_containers.rs b/xtask/src/ui_containers.rs index 5cddfa946..fb9e1ff7e 100644 --- a/xtask/src/ui_containers.rs +++ b/xtask/src/ui_containers.rs @@ -325,7 +325,8 @@ pub fn run(root: &Path) -> Result<(), String> { let source = std::fs::read_to_string(&path).map_err(|e| format!("{}: {e}", path.display()))?; let found = violations(&source).map_err(|e| format!("{}: {e}", path.display()))?; if !found.is_empty() { - failures.push(format!("{}: {}", path.strip_prefix(root).unwrap_or(&path).display(), found.join(", "))); + let relative = path.strip_prefix(root).unwrap_or(&path).to_string_lossy().replace('\\', "/"); + failures.push(format!("{relative}: {}", found.join(", "))); } } }