fix(patches): pin patches/ to eol=lf for pnpm 12's diff parser
Some checks failed
Checks / main (push) Has been cancelled

pnpm 12 swapped the JS patch-applier for a Rust one that rejects a carriage
return in a diff's file-header line ("invalid char in unquoted filename"),
so `pnpm install` aborts with ERR_PNPM_INVALID_PATCH before linking anything.
The patch blobs are committed LF, but a Windows checkout with
core.autocrlf=true rewrites them to CRLF and .gitattributes had no rule for
patches/. pnpm 11's parser tolerated the CR; Linux CI is unaffected, which is
why #11365 stayed green.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Elian Doran 2026-09-06 11:33:01 +02:00
parent a6c8334099
commit d6f5a042ef
No known key found for this signature in database

1
.gitattributes vendored
View File

@ -10,6 +10,7 @@ apps/edit-docs/demo/** linguist-vendored=true
docs/** linguist-vendored=true docs/** linguist-vendored=true
# Normalize line endings. # Normalize line endings.
patches/** eol=lf
docs/**/*.md eol=lf docs/**/*.md eol=lf
docs/**/*.json eol=lf docs/**/*.json eol=lf
demo/**/*.html eol=lf demo/**/*.html eol=lf