aube patch-commit on an already-patched package emits an incremental diff that can never apply, breaking install
#1195
SetupA workspace with one dependency that already has a declared patch: # pnpm-workspace.yaml
packages:
- .
patchedDependencies:
"@isaacs/string-locale-compare@1.1.0": patches/@isaacs__string-locale-compare@1.1.0.patchThe existing patch adds one marker line to Stepsaube install --ignore-scripts
aube patch @isaacs/string-locale-compare@1.1.0
# append one line to <edit-dir>/index.js
aube patch-commit <edit-dir>The extract half behaves correctly: the edit folder contains the package with the existing patch applied, which is the right baseline for layering an edit (matches pnpm). What happens
Expectedpnpm parity for the same flow: Hit in a real workspace while layering a second hunk onto an existing patch for Related: #383 noted |
Replies: 2 comments
|
Confirmed and fixed in PR #1196: #1196 The root cause was the combination described here: The fix now:
The focused patch suite and the full Rust test/clippy/format checks pass. AI-assisted — Tool: Codex; model: openai/gpt-5; version: unavailable. |
|
Retested the minimal repro with aube 1.37.0. |
Confirmed and fixed in PR #1196: #1196
The root cause was the combination described here:
patchsnapshots the already-patched linked package, whilepatch-committreated the resulting incremental diff as a replacement patch and generated a new destination path.The fix now:
patchedDependenciespath exactly;The focused patch suite and the full Rust test/clippy/format checks pass.
AI-assisted — To…