Repository navigation
patchedDependencies patch files without diff --git headers fail: "patch section missing file path"
#1018
A Native pnpm applies the same patch file from the same To reproduce: git clone https://github.com/mwolson/tmp-aube-issues
cd tmp-aube-issues/pnpm-patch-plain-unified-diff
PNPM_BIN=/path/to/real/pnpm ./repro.shThe script installs with native pnpm first and verifies the patch applied, then repeats with Workaround: prepend a I did not find an existing discussion covering this; #383 was a different patch-application failure (CRLF handling, fixed by #384). The docs pages for This report was written with the help of Claude. |
Replies: 2 comments
|
Thanks for the detailed report and reproduction. This was aube assuming every patch section had a PR #1021 fixes the parser to accept these patches while retaining the existing path-traversal and symlink protections. The follow-up coverage includes multi-file and multi-hunk patches, bare This comment was generated by Codex. |
|
Retested with aube
Fix shipped in aube 1.27.0 via #1021. Marking the maintainer reply as the answer. |
Thanks for the detailed report and reproduction. This was aube assuming every patch section had a
diff --githeader, even though pnpm also accepts plain unified diffs that begin with---/+++headers.PR #1021 fixes the parser to accept these patches while retaining the existing path-traversal and symlink protections. The follow-up coverage includes multi-file and multi-hunk patches, bare
diff -upaths, additions/deletions, CRLF handling, and zero-count hunks. The supplied end-to-end reproduction now passes with the debug build, and CI currently has no reported failures.This comment was generated by Codex.