From 5fdd3c05f1d54139a155a06c6d414d7b543c7971 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 16 Nov 2026 15:22:38 -0800 Subject: [PATCH] :bug: Check out every file with its committed bytes, whatever autocrlf says Git for Windows' installer sets core.autocrlf=true, and with no attributes a clone it makes holds every text file with CRLF line ends. A user's install of the development channel on Windows then stopped in cargo xtask dist: reims-vgpu-vulkan's build script hashes the .metal sources, and found the committed metallibs built from other bytes. The prebuilt records of the option ROM and the guest's kexts, cargo xtask header --check and the Info.plist files reims-ctl embeds read files byte for byte too. text=auto eol=lf keeps LF in every checkout and normalises what is committed; the committed metallibs, ROM, kext executables, xz answers and PNGs are binary by name, so no first-bytes guess decides them. No committed file changes: all 1730 text files are LF in the index, and the 95 binaries are the ones named. --- .gitattributes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..796b4b4c3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,15 @@ +# Every checkout holds each file's committed bytes, whatever core.autocrlf says. Git for Windows' +# installer sets core.autocrlf=true, which writes text files out with CRLF line ends where no +# attribute says otherwise, and the build and its checks read some of them byte for byte: +# reims-vgpu-vulkan's build script hashes the .metal sources for metallibs/metallibs.toml, the +# option ROM's and the guest's prebuilt records hash the files they were built from, `cargo xtask +# header --check` compares the C header with cbindgen's, and reims-ctl embeds the guest's +# Info.plist files. Text is committed with LF line ends, and checked out with them. +* text=auto eol=lf + +# The committed build outputs and data, which are not text whatever their first bytes look like. +*.metallib binary +*.rom binary +*.xz binary +*.png binary +guest/**/Contents/MacOS/* binary