From e60a7e43bf0eb67a288f220b95ec357f3655b74e Mon Sep 17 00:00:00 2001 From: jahvari <75337667+jahvari@users.noreply.github.com> Date: Sat, 10 Oct 2026 17:29:21 -0500 Subject: [PATCH] WIN-03: Normalize packaging fixture line endings in tests --- xtask/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 2e1908687..08f1ade7d 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -519,7 +519,8 @@ mod tests { fn macos_packaging(file: &str) -> String { let path = Path::new(env!("CARGO_MANIFEST_DIR")).join("../packaging/macos").join(file); - std::fs::read_to_string(&path).unwrap_or_else(|e| panic!("{}: {e}", path.display())) + // Git may check out packaging files with CRLF on Windows. + std::fs::read_to_string(&path).unwrap_or_else(|e| panic!("{}: {e}", path.display())).replace("\r\n", "\n") } /// Voice-over recording needs both halves on macOS: the usage string (else the permission