mirror of
https://github.com/zadam/trilium.git
synced 2026-09-12 19:50:20 +05:00
fix(patches): pin patches/ to eol=lf for pnpm 12's diff parser
Some checks failed
Checks / main (push) Has been cancelled
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:
parent
a6c8334099
commit
d6f5a042ef
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user