aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-registry/src/installer_executor
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-02 11:57:12 +0900
committernsfisis <nsfisis@gmail.com>2026-05-02 11:57:12 +0900
commit82501a36a0fa6725d656742da42c860e75a89b89 (patch)
tree6878658fec4c89e0dea74cbcd2e067d9677a1d20 /crates/mozart-registry/src/installer_executor
parenteef83859937cfa140131636f134104cf3549cf5c (diff)
downloadphp-mozart-82501a36a0fa6725d656742da42c860e75a89b89.tar.gz
php-mozart-82501a36a0fa6725d656742da42c860e75a89b89.tar.zst
php-mozart-82501a36a0fa6725d656742da42c860e75a89b89.zip
feat(resolver): real constraint intersection and replace-aware same-name conflicts
`Pool::what_provides` previously accepted any provide/replace candidate because `constraints_intersect` returned true unconditionally; the same-name conflict pass also looked only at canonical names, so a package replacing another at v1.0.0 was treated as a valid provider for a v2.0.0 require and could coexist with the replaced package. Implement interval-based `VersionConstraint::intersects` and index packages by their `replace` targets (matching Composer's `getNames(false)`) when generating same-name conflict rules. Greens 3 installer fixtures: conflict_against_replaced_by_dep_package_problem, provider_conflicts3, replaced_packages_should_not_be_installed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart-registry/src/installer_executor')
0 files changed, 0 insertions, 0 deletions