aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/require.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-04 00:32:45 +0900
committernsfisis <nsfisis@gmail.com>2026-05-04 00:32:45 +0900
commit6449a15de90fe8252fb288bd5eacb99dc2cd699a (patch)
tree81a2b5c2c595a67112d7211db6dcb670efb09ea0 /crates/mozart/src/commands/require.rs
parent5fc05048a456ce18fd9408ea985031865cf45550 (diff)
downloadphp-mozart-6449a15de90fe8252fb288bd5eacb99dc2cd699a.tar.gz
php-mozart-6449a15de90fe8252fb288bd5eacb99dc2cd699a.tar.zst
php-mozart-6449a15de90fe8252fb288bd5eacb99dc2cd699a.zip
fix(compat): align repositories/version/platform parsing with Composer
Three Composer-compat bugs surfaced by the github_issues_9290 fixture, fixed together since they form one resolution path: - RawPackageData.repositories now accepts a JSON object keyed by name, matching RepositoryFactory::createRepos which iterates either int- or string-keyed arrays via PHP foreach. - Version::parse fills every unspecified position of a `.x-dev` branch with 9999999, mirroring VersionParser::normalizeBranch. Previously `2.x-dev` parsed to 2.0.9999999.9999999-dev and failed to satisfy ^2.8. - is_platform_package limits the `php-` family to the closed set {64bit,ipv6,zts,debug} per PLATFORM_PACKAGE_REGEX. Vendor packages like `php-http/client-common` are no longer misclassified. Unblocks github_issues_7051, _8903, _9012, _9290. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/require.rs')
0 files changed, 0 insertions, 0 deletions