From 6643eb8b7d305818f80c910144b3b29b1af34ba7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 9 Aug 2026 09:14:11 +0900 Subject: refactor(installed-versions): drop the Rust port, which has no readers InstalledVersions is a runtime API for plugins and project code; Composer itself never reads it. Its consumers run in the PHP worker against the copy FilesystemRepository dumps to vendor/composer/InstalledVersions.php, whose static state is already kept in sync by __shirabe_installed_versions_reload. Nothing in Rust read the mirrored statics, so reload() and the reflection setters were no-ops. The tests covered only the Rust port, not the PHP class the worker loads, so they assert nothing about compatibility; they are left as todo!() skeletons. This also removes the shim functions method_exists, php_dir and require_php_file, whose only caller was the deleted module. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crates/shirabe/src/lib.rs') diff --git a/crates/shirabe/src/lib.rs b/crates/shirabe/src/lib.rs index 4667e7c9..e5624988 100644 --- a/crates/shirabe/src/lib.rs +++ b/crates/shirabe/src/lib.rs @@ -11,7 +11,6 @@ pub mod event_dispatcher; pub mod exception; pub mod factory; pub mod filter; -pub mod installed_versions; pub mod installer; pub mod io; pub mod json; @@ -25,6 +24,10 @@ pub mod script; pub mod self_update; pub mod util; +// InstalledVersions is intentionally unported to Rust. It is a runtime API for plugins and project +// code, never read by Composer itself. Its real state is stored in PHP's InstalledVersions class. +// See also `__shirabe_installed_versions_reload` in crates/shirabe-php-rpc/php/worker.php. + /// ref: composer/bin/composer pub fn run(argv: Vec) -> anyhow::Result { use crate::console::ApplicationHandle; -- cgit v1.3.1-4-g156e