From eb1e21c059d83f0af9786e4d3cace80afe8456a2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 23 Feb 2026 01:51:10 +0900 Subject: fix(validate): warn on orphan scripts-descriptions/aliases and honor config.lock - Detect scripts-descriptions and scripts-aliases keys referencing non-existent scripts and emit warnings matching Composer's behavior - Respect config.lock=false in composer.json to skip lock file checks unless --check-lock is explicitly passed Co-Authored-By: Claude Opus 4.6 --- crates/mozart/src/commands/self_update.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crates/mozart/src/commands/self_update.rs') diff --git a/crates/mozart/src/commands/self_update.rs b/crates/mozart/src/commands/self_update.rs index 0c2f0f6..a0cd59d 100644 --- a/crates/mozart/src/commands/self_update.rs +++ b/crates/mozart/src/commands/self_update.rs @@ -460,9 +460,10 @@ fn clean_backups(data_dir: &Path, except: Option<&Path>) -> anyhow::Result<()> { if is_backup { if let Some(exc) = except - && path == exc { - continue; - } + && path == exc + { + continue; + } std::fs::remove_file(&path) .map_err(|e| anyhow::anyhow!("Could not remove backup {}: {e}", path.display()))?; } -- cgit v1.3.1