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/tests | |
| 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/tests')
| -rw-r--r-- | crates/mozart/tests/installer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/mozart/tests/installer.rs b/crates/mozart/tests/installer.rs index c3e1f7d..5133167 100644 --- a/crates/mozart/tests/installer.rs +++ b/crates/mozart/tests/installer.rs @@ -358,7 +358,7 @@ installer_fixture!(update_all); installer_fixture!(update_all_dry_run); installer_fixture!(update_allow_list); installer_fixture!(update_allow_list_locked_require); -installer_fixture!(update_allow_list_minimal_changes, ignore); +installer_fixture!(update_allow_list_minimal_changes); installer_fixture!(update_allow_list_patterns, ignore); installer_fixture!(update_allow_list_patterns_with_all_dependencies); installer_fixture!(update_allow_list_patterns_with_dependencies); |
