aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-semver/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-03 23:44:47 +0900
committernsfisis <nsfisis@gmail.com>2026-05-03 23:44:47 +0900
commit65993be1b2ecdc590f566b2bcfea803d0d08b5e6 (patch)
tree14169c8e5c2636264438c7c44935265f00385bc2 /crates/mozart-semver/src
parente37b12d6e2d95b4d3924859732513e125fc552e0 (diff)
downloadphp-mozart-65993be1b2ecdc590f566b2bcfea803d0d08b5e6.tar.gz
php-mozart-65993be1b2ecdc590f566b2bcfea803d0d08b5e6.tar.zst
php-mozart-65993be1b2ecdc590f566b2bcfea803d0d08b5e6.zip
fix(resolver): cap inline package loads by root require constraint
Mirror Composer's PoolBuilder::markPackageNameForLoading: when the root requires a name with a version constraint, loads of that name (seed and transitive) are filtered down to candidates whose own version (or any emitted branch-alias version) satisfies the constraint. Without this, the actual package at a non-matching version slips into the pool alongside a provider satisfying the root require, masking what should be a conflict (provider-gets-picked-together-with-other-version-of- provided-conflict.test). Also restore the Composer v1 compat path in inline_package: when the JSON sets version_normalized to the legacy 9999999-dev sentinel, re-normalize from the human-readable version field so a root require for `dev-master` matches the loaded package. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart-semver/src')
0 files changed, 0 insertions, 0 deletions