diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-03 20:06:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-03 20:06:49 +0900 |
| commit | f664a25070b38c5b73995874e0ee15dad23bc5ef (patch) | |
| tree | d4996dd03dbecc354cabc3226dbcd64e1ba5c6a8 /crates/mozart/tests | |
| parent | d3cdb9e3f73314e04061d4d18f654e7e80b0dc18 (diff) | |
| download | php-mozart-f664a25070b38c5b73995874e0ee15dad23bc5ef.tar.gz php-mozart-f664a25070b38c5b73995874e0ee15dad23bc5ef.tar.zst php-mozart-f664a25070b38c5b73995874e0ee15dad23bc5ef.zip | |
fix(update): union lock and repo requires when expanding --with-deps
Previously requires_for_name returned the lock entry's requires when the
package was already locked, falling back to repo requires only when not.
That missed the case where the resolver would pick a *newer* version of
the locked package that added a new requirement on another locked
package — the new dependency stayed pinned and the upgrade was silently
suppressed. Union both sources so every candidate version's requires
contribute to the unlock cascade.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 cd00f88..ec89e39 100644 --- a/crates/mozart/tests/installer.rs +++ b/crates/mozart/tests/installer.rs @@ -370,7 +370,7 @@ installer_fixture!(update_allow_list_require_new_replace); installer_fixture!(update_allow_list_warns_non_existing_patterns); installer_fixture!(update_allow_list_with_dependencies); installer_fixture!(update_allow_list_with_dependencies_alias, ignore); -installer_fixture!(update_allow_list_with_dependencies_new_requirement, ignore); +installer_fixture!(update_allow_list_with_dependencies_new_requirement); installer_fixture!(update_allow_list_with_dependencies_require_new); installer_fixture!(update_allow_list_with_dependencies_require_new_replace); installer_fixture!( |
