diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-03 22:14:28 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-03 22:14:28 +0900 |
| commit | 9a467625ff8d135c650c7fefacfa0358002ce4d2 (patch) | |
| tree | f1451272418aae11d0134d73ad4c9f514892842b /crates/mozart-registry | |
| parent | 6d036ca5b0e6cb21e5b12a02d544a27e33a97a14 (diff) | |
| download | php-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
