You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add apply --force flag and rename --no-apply to --save-only (#33)
* feat: add `apply --force` flag and rename `--no-apply` to `--save-only`
Add --force/-f flag to `apply` command that skips pre-application hash
verification, allowing patches to be applied even when the installed
package version differs from what the patch targets. When force is
enabled, hash mismatches are treated as ready-to-patch and missing
files (for non-new entries) are skipped rather than aborting.
Rename `get --no-apply` to `get --save-only` for clarity, with
`--no-apply` kept as a backward-compatible alias.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: remove needless return statements flagged by clippy 1.93
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: remove identical if/else branches in scan.rs flagged by clippy
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: correct e2e force tests to use file corruption instead of version swap
npm test: Swapping to minimist@1.2.5 changes the PURL version so the
crawler never matches the manifest key — apply returns success without
reaching the hash check. Instead, corrupt the file content in-place.
pypi test: The pydantic-ai patch variant may have files with empty
beforeHash (new files). Dynamically find a file with a non-empty
beforeHash to corrupt.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: remove pypi force test (patch has no files with non-empty beforeHash)
The pydantic-ai@0.0.36 patch treats all files as new (empty beforeHash),
so hash mismatch cannot occur. The --force feature is covered by the npm
e2e test and 2 unit tests in apply.rs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments