diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-03 19:08:30 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-03 19:08:30 +0900 |
| commit | a9b80907286bb74506fc2bfcc22f3d9ce6924472 (patch) | |
| tree | 03c9335369e5b284faacd4356f26c9b0e8d84103 /crates/mozart/tests | |
| parent | 766fec6ed7b3610126abe3619c6c5f98f393d937 (diff) | |
| download | php-mozart-a9b80907286bb74506fc2bfcc22f3d9ce6924472.tar.gz php-mozart-a9b80907286bb74506fc2bfcc22f3d9ce6924472.tar.zst php-mozart-a9b80907286bb74506fc2bfcc22f3d9ce6924472.zip | |
fix(resolver): load inline type:package entries by name, not eagerly
Mirror Composer's PackageRepository (extends ArrayRepository) which only
emits packages whose own name matches a queried name. Eager-loading every
inline package let the SAT resolver pick a replacer that nothing required
by name, masking broken transitive dependencies.
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 | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/mozart/tests/installer.rs b/crates/mozart/tests/installer.rs index b5e4026..ce3ea4a 100644 --- a/crates/mozart/tests/installer.rs +++ b/crates/mozart/tests/installer.rs @@ -226,7 +226,7 @@ installer_fixture!(alias_with_reference, ignore); installer_fixture!(aliased_priority); installer_fixture!(aliased_priority_conflicting); installer_fixture!(aliases_with_require_dev, ignore); -installer_fixture!(broken_deps_do_not_replace, ignore); +installer_fixture!(broken_deps_do_not_replace); installer_fixture!(circular_dependency, ignore); installer_fixture!(circular_dependency2); installer_fixture!(circular_dependency_errors); @@ -320,10 +320,7 @@ installer_fixture!( installer_fixture!(provider_gets_picked_together_with_other_version_of_provided_indirect); installer_fixture!(provider_packages_can_be_installed_if_selected); installer_fixture!(provider_packages_can_be_installed_together_with_provided_if_both_installable); -installer_fixture!( - provider_packages_can_not_be_installed_unless_selected, - ignore -); +installer_fixture!(provider_packages_can_not_be_installed_unless_selected); installer_fixture!(provider_satisfies_its_own_requirement); installer_fixture!(remove_deletes_unused_deps); installer_fixture!(remove_does_nothing_if_removal_requires_update_of_dep); |
