From 6449a15de90fe8252fb288bd5eacb99dc2cd699a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 4 May 2026 00:32:45 +0900 Subject: 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) --- crates/mozart/tests/installer.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/mozart/tests') diff --git a/crates/mozart/tests/installer.rs b/crates/mozart/tests/installer.rs index 968cdb1..177decf 100644 --- a/crates/mozart/tests/installer.rs +++ b/crates/mozart/tests/installer.rs @@ -277,11 +277,11 @@ installer_fixture!(full_update_minimal_changes); installer_fixture!(github_issues_4319); installer_fixture!(github_issues_4795); installer_fixture!(github_issues_4795_2); -installer_fixture!(github_issues_7051, ignore); +installer_fixture!(github_issues_7051); installer_fixture!(github_issues_8902); -installer_fixture!(github_issues_8903, ignore); -installer_fixture!(github_issues_9012, ignore); -installer_fixture!(github_issues_9290, ignore); +installer_fixture!(github_issues_8903); +installer_fixture!(github_issues_9012); +installer_fixture!(github_issues_9290); installer_fixture!(hint_main_rename); installer_fixture!(install_aliased_alias); installer_fixture!(install_branch_alias_composer_repo); -- cgit v1.3.1