diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-08 22:37:11 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-08 22:37:11 +0900 |
| commit | 392cf71170bf2550aa657158e9efd2b890381a94 (patch) | |
| tree | 3a52eab99c4d3cb2cca48fbd3f68ca724a9de3b3 /Cargo.toml | |
| parent | b61ab05cf1d29bd81d9910361630219b9aa65dcc (diff) | |
| download | php-mozart-392cf71170bf2550aa657158e9efd2b890381a94.tar.gz php-mozart-392cf71170bf2550aa657158e9efd2b890381a94.tar.zst php-mozart-392cf71170bf2550aa657158e9efd2b890381a94.zip | |
fix(remove): align with Composer's RemoveCommand pipeline
- Match exact deprecation wording for --update-with-dependencies and
drop the false deprecation warning for -W/--update-with-all-dependencies
- Append --with-all-dependencies / --with-dependencies flag suffix to the
"Running composer update" echo (mirrors PHP's \$flags variable)
- Drop validate_package_name bail so glob-style names fall through to the
"not required in your composer.json" warning, matching Composer
- Always run the install pipeline after the JSON edit even when nothing
changed (removes the if !any_removed short-circuit)
- Capture composer_backup before any mutation and restore it on pipeline
failure with the "Removal failed, reverting" error message
- After install, read vendor/composer/installed.json and return exit 2
if any removed package is still present (mirrors Composer's local-repo
query at RemoveCommand.php L303-311)
- Fix remove_unused: bail with Composer's exact error when no lock file
present; use "No unused packages to remove" (no period) for empty case
- Rename raw -> composer, any_removed -> packages_removed to mirror PHP
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions
