diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-23 01:52:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-23 01:59:22 +0900 |
| commit | 612af0aaacda404b8e177d0c1a6d3bd937e8d39a (patch) | |
| tree | e7a74752686e3216a533f7437d3838dc10c58328 /crates/mozart/src/commands/require.rs | |
| parent | cc8f22ff7f1d9ed32e14f5b59a5498f8aa653091 (diff) | |
| download | php-mozart-612af0aaacda404b8e177d0c1a6d3bd937e8d39a.tar.gz php-mozart-612af0aaacda404b8e177d0c1a6d3bd937e8d39a.tar.zst php-mozart-612af0aaacda404b8e177d0c1a6d3bd937e8d39a.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/require.rs')
| -rw-r--r-- | crates/mozart/src/commands/require.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/mozart/src/commands/require.rs b/crates/mozart/src/commands/require.rs index ef5ff04..4ea739d 100644 --- a/crates/mozart/src/commands/require.rs +++ b/crates/mozart/src/commands/require.rs @@ -655,6 +655,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 @@ -1026,6 +1027,7 @@ mod tests { ignore_platform_reqs: false, ignore_platform_req_list: vec![], repo_cache: None, + temporary_constraints: HashMap::new(), }; let resolved = resolver::resolve(&request) @@ -1078,6 +1080,7 @@ mod tests { ignore_platform_reqs: false, ignore_platform_req_list: vec![], repo_cache: None, + temporary_constraints: HashMap::new(), }; let resolved = resolver::resolve(&request) |
