fix(ci): keep mobile patches LF so Windows can parse them (#21439)

A Windows checkout CRLF-converted mobile/patches/*.patch because no
gitattributes rule covered them, and pnpm rejected the result with
ERR_PNPM_INVALID_PATCH, failing package (windows) and the verify
aggregate. config/patches/*.patch has been pinned -text for this exact
reason; mobile/patches/ was added later and never got the same rule.

git ls-files --eol showed all three mobile patches with an empty attr
against attr/-text on every config patch.
This commit is contained in:
Neil
2026-09-18 03:42:48 -07:00
committed by GitHub
parent 8f9a55ef8a
commit 7909dad7ba
+3
View File
@@ -23,6 +23,9 @@
# runs `git apply` on one must force `-c core.autocrlf=input` rather than trust
# the host's setting. See config/scripts/windows-process-tree-gyp-rebuild.mjs.
/config/patches/*.patch -text
# Same reason, and pnpm parses these too: a CRLF checkout makes the mobile
# patches unparseable, so Windows packaging dies on ERR_PNPM_INVALID_PATCH.
/mobile/patches/*.patch -text
# The xterm bundle hunks also make a diff nobody can read; review the hand-written
# source patch under xterm-src/ instead. The sibling patches stay diffable.
/config/patches/@xterm__xterm@*.patch -diff