aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-registry
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-03 22:14:28 +0900
committernsfisis <nsfisis@gmail.com>2026-05-03 22:14:28 +0900
commit9a467625ff8d135c650c7fefacfa0358002ce4d2 (patch)
treef1451272418aae11d0134d73ad4c9f514892842b /crates/mozart-registry
parent6d036ca5b0e6cb21e5b12a02d544a27e33a97a14 (diff)
downloadphp-mozart-9a467625ff8d135c650c7fefacfa0358002ce4d2.tar.gz
php-mozart-9a467625ff8d135c650c7fefacfa0358002ce4d2.tar.zst
php-mozart-9a467625ff8d135c650c7fefacfa0358002ce4d2.zip
fix(update): apply --minimal-changes preferred versions on partial update
The previous --minimal-changes wiring only populated the policy's preferred-version map when no packages were named on the CLI, so a partial update like `update foo --with-all-dependencies --minimal-changes` saw an empty map and the resolver picked the highest matching version for transitive deps that should have stayed at their lock version. Mirror Composer's `Installer::createPolicy(minimalUpdate=true)` directly: build the map from the lock and skip only the packages explicitly named by the user (the `updateAllowList`), so deps unlocked transitively by `--with-(all-)dependencies` still prefer their lock version when the constraint allows it.
Diffstat (limited to 'crates/mozart-registry')
0 files changed, 0 insertions, 0 deletions