From fe210391f59d5fe19d5c3d56d369ab7918117de1 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 1 May 2026 20:42:56 +0900 Subject: feat(registry): accept v1 (bare array) installed.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Composer's FilesystemRepository::initialize branches on isset($data['packages']) — object form is v2, bare array is v1 — and treats dev-package-names/dev as optional. Mirror that in InstalledPackages::read so Mozart consumes shared .test fixtures (which use v1) without harness preprocessing, and so installs over v1-era vendor directories keep working. Drop the v1→v2 wrapper that was added to mozart-test-harness for the same reason. Removes #[ignore] from update_to_empty_from_locked (2/187 green). Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/mozart/tests/installer.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crates/mozart/tests') diff --git a/crates/mozart/tests/installer.rs b/crates/mozart/tests/installer.rs index a0e3f25..0520108 100644 --- a/crates/mozart/tests/installer.rs +++ b/crates/mozart/tests/installer.rs @@ -766,10 +766,7 @@ installer_fixture!( ignore = "mozart binary cannot yet run this fixture" ); installer_fixture!(update_to_empty_from_blank); -installer_fixture!( - update_to_empty_from_locked, - ignore = "mozart binary cannot yet run this fixture" -); +installer_fixture!(update_to_empty_from_locked); installer_fixture!( update_with_all_dependencies, ignore = "mozart binary cannot yet run this fixture" -- cgit v1.3.1