diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-02 17:43:26 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-02 17:43:38 +0900 |
| commit | 97b5211ab3a41d63ea50d0ca1ecfde6ad3323525 (patch) | |
| tree | d058292255adb87b2914aac31f6ea31a87b93140 /crates/shirabe/tests/common/bootstrap.rs | |
| parent | 48af92c807a7cd1df54c2b1df5dba508aefc6b6e (diff) | |
| download | php-shirabe-97b5211ab3a41d63ea50d0ca1ecfde6ad3323525.tar.gz php-shirabe-97b5211ab3a41d63ea50d0ca1ecfde6ad3323525.tar.zst php-shirabe-97b5211ab3a41d63ea50d0ca1ecfde6ad3323525.zip | |
fix(repository): restore late-bound initialize in FilesystemRepository add/remove
ArrayRepository::addPackage()/removePackage() rely on PHP late binding to run
FilesystemRepository::initialize (reading the file) on first touch. The inner
delegation skipped that: an add on a not-yet-read repository froze the array
to just the added packages (a later write() would truncate installed.json),
and a remove hit the packages-initialized expect(). Guard both with
ensure_initialized(), matching the pattern used by the read paths.
Same defect class as the 3e367f78 downloader fix.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/common/bootstrap.rs')
0 files changed, 0 insertions, 0 deletions
