aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/tests/installer.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-01 20:42:56 +0900
committernsfisis <nsfisis@gmail.com>2026-05-01 20:42:56 +0900
commitfe210391f59d5fe19d5c3d56d369ab7918117de1 (patch)
tree4486d5945d241d0e6e8bf79072744cc0cca90cf4 /crates/mozart/tests/installer.rs
parent8261abde3d9fb9ec1d764b912fa5487e4fcd9339 (diff)
downloadphp-mozart-fe210391f59d5fe19d5c3d56d369ab7918117de1.tar.gz
php-mozart-fe210391f59d5fe19d5c3d56d369ab7918117de1.tar.zst
php-mozart-fe210391f59d5fe19d5c3d56d369ab7918117de1.zip
feat(registry): accept v1 (bare array) installed.json
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/tests/installer.rs')
-rw-r--r--crates/mozart/tests/installer.rs5
1 files changed, 1 insertions, 4 deletions
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"