From 612af0aaacda404b8e177d0c1a6d3bd937e8d39a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 23 Feb 2026 01:52:22 +0900 Subject: fix(update): implement --with constraints, inline shorthand, and APCu passthrough - Parse and apply --with temporary constraints to the resolver - Support inline constraint shorthand (vendor/pkg:1.0.*) - Reject --lock combined with specific package names - Filter magic keywords (lock/nothing/mirrors) from package list - Pass APCu CLI flags through to InstallConfig instead of hardcoding Co-Authored-By: Claude Opus 4.6 --- crates/mozart/src/commands/remove.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/mozart/src/commands/remove.rs') diff --git a/crates/mozart/src/commands/remove.rs b/crates/mozart/src/commands/remove.rs index acf878c..88fa4da 100644 --- a/crates/mozart/src/commands/remove.rs +++ b/crates/mozart/src/commands/remove.rs @@ -250,6 +250,7 @@ pub async fn execute( ignore_platform_reqs: args.ignore_platform_reqs, ignore_platform_req_list: args.ignore_platform_req.clone(), repo_cache: None, + temporary_constraints: HashMap::new(), }; // Print header messages @@ -495,6 +496,7 @@ async fn remove_unused( ignore_platform_reqs: args.ignore_platform_reqs, ignore_platform_req_list: args.ignore_platform_req.clone(), repo_cache: None, + temporary_constraints: HashMap::new(), }; console.info("Resolving dependencies to detect unused packages..."); @@ -823,6 +825,7 @@ mod tests { ignore_platform_reqs: false, ignore_platform_req_list: vec![], repo_cache: None, + temporary_constraints: HashMap::new(), }; let resolved = resolve(&request) .await @@ -858,6 +861,7 @@ mod tests { ignore_platform_reqs: false, ignore_platform_req_list: vec![], repo_cache: None, + temporary_constraints: HashMap::new(), }; let resolved2 = resolve(&request2) .await -- cgit v1.3.1