aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/create_project.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-03 16:23:40 +0900
committernsfisis <nsfisis@gmail.com>2026-05-03 16:23:40 +0900
commitd84024fb179e3ebb55573971a329cb6ff72d7fa0 (patch)
treee7742e916c66c5e7cebb136453db9412fefb530b /crates/mozart/src/commands/create_project.rs
parent87f5bcdc2d0e5fbec3848de3865d6c0d47d623ea (diff)
downloadphp-mozart-d84024fb179e3ebb55573971a329cb6ff72d7fa0.tar.gz
php-mozart-d84024fb179e3ebb55573971a329cb6ff72d7fa0.tar.zst
php-mozart-d84024fb179e3ebb55573971a329cb6ff72d7fa0.zip
fix(resolver): seed locked packages into pool and honour root-require barrier
Mirror Composer's PoolBuilder/Request semantics for partial updates: each non-allow-listed locked package becomes a non-fixed pool entry restricted to its locked version, so `replace`-providing peers cannot silently displace it. Path-repo packages are exempt — Composer always reloads them from disk. Threading `--with-dependencies` through `expand_with_direct_dependencies` now performs transitive expansion with a root-require barrier matching UPDATE_LISTED_WITH_TRANSITIVE_DEPS_NO_ROOT_REQUIRE, so root requires stay locked when reached via a transitive dep. Newly green: remove_does_nothing_if_removal_requires_update_of_dep, update_allow_list_removes_unused, github_issues_4795, partial_update_with_deps_warns_root. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/create_project.rs')
-rw-r--r--crates/mozart/src/commands/create_project.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/mozart/src/commands/create_project.rs b/crates/mozart/src/commands/create_project.rs
index 215eb20..ae7a550 100644
--- a/crates/mozart/src/commands/create_project.rs
+++ b/crates/mozart/src/commands/create_project.rs
@@ -441,6 +441,7 @@ pub async fn execute(
.map(|(k, v)| (k.clone(), v.clone()))
.collect(),
locked_package_names: indexmap::IndexSet::new(),
+ locked_packages: Vec::new(),
};
console.info("Resolving dependencies...");