From ef1794bf1aed2349cd67854ef82fa492a0799a50 Mon Sep 17 00:00:00 2001 From: stack72 Date: Tue, 28 Apr 2026 13:19:30 +0200 Subject: [PATCH] ci: add .gitattributes to pin line endings to LF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without an explicit .gitattributes, Windows checkouts default to core.autocrlf=true, which converts LF to CRLF on checkout. deno fmt --check then reports every text file with "Text differed by line endings" and aborts the pipeline before deno check / test / compile can run. This file is invisible on macOS/Linux (existing files already have LF) but ensures Windows clones — including the cross-platform-builds workflow — get LF, unblocking the rest of the cross-platform pipeline. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitattributes | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..a9c8562c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +# Pin line endings to LF for all text files. Without this, Windows +# checkouts default to core.autocrlf=true, which converts LF -> CRLF +# and trips deno fmt --check. +* text=auto eol=lf + +# Explicit binary types (don't auto-detect) +*.png binary +*.jpg binary +*.gz binary