diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-22 23:41:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-22 23:41:46 +0900 |
| commit | 25f8933762de7fce3ce71718d19bced0cde435ae (patch) | |
| tree | 09314c46900dd0f77b65265ae0b1210b9ddb53d5 | |
| parent | d0866c96a250078c23d2916598da2411993a8892 (diff) | |
| download | php-mozart-25f8933762de7fce3ce71718d19bced0cde435ae.tar.gz php-mozart-25f8933762de7fce3ce71718d19bced0cde435ae.tar.zst php-mozart-25f8933762de7fce3ce71718d19bced0cde435ae.zip | |
fix(audit): change --abandoned default from "report" to "fail"
Composer defaults to "fail" for the --abandoned flag, causing a
non-zero exit code when abandoned packages are detected. Mozart
was defaulting to "report", which only printed warnings.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| -rw-r--r-- | crates/mozart/src/commands/audit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/mozart/src/commands/audit.rs b/crates/mozart/src/commands/audit.rs index dffa2e4..497726c 100644 --- a/crates/mozart/src/commands/audit.rs +++ b/crates/mozart/src/commands/audit.rs @@ -83,7 +83,7 @@ pub async fn execute( } // Validate --abandoned - let abandoned_mode = match args.abandoned.as_deref().unwrap_or("report") { + let abandoned_mode = match args.abandoned.as_deref().unwrap_or("fail") { "ignore" => "ignore", "report" => "report", "fail" => "fail", |
