From e32a12ebeb826b28ed79f0926611e6fceeb6fa4f Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Thu, 3 Dec 2026 07:10:28 -0800 Subject: [PATCH] xtask: ui-commands --check passes in a checkout with core.autocrlf cargo xtask ui-commands --check compares crates/mcp/src/ui_catalog.rs byte for byte with the rustfmt output the generator produces, which has LF line endings. With core.autocrlf=true, the Git for Windows default, git checked the file out with CRLF line endings, so the check and cargo xtask ci failed on an unchanged tree. The root .gitattributes now marks the file -text, as it does the DXF writer goldens, so git checks it out with the LF bytes stored in the index. --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitattributes b/.gitattributes index e3ff66fc1c..dc4403a4db 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,4 @@ # The DXF writer goldens are compared byte for byte with the writer's output (LF line endings). crates/cad/tests/data/*.dxf -text +# `cargo xtask ui-commands --check` compares this file byte for byte with rustfmt's output (LF line endings). +crates/mcp/src/ui_catalog.rs -text