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 commit44b58d8e10) 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 base3a6153d18f. 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>
This commit is contained in:
1 parent
e9f2f251e4
commit
bf69db04dd
1 file changed
+2
-1
@@ -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(", ")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user