From 2a3ec5d33195d7290ac0869798cad6f84f84d238 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 27 Jun 2026 05:48:36 +0900 Subject: fix(filesystem-repository): avoid RefCell double borrow on installed.php file_put_contents_if_modified held a filesystem borrow_mut() receiver while its argument re-borrowed the same RefCell via dump_to_php_code(), panicking with "RefCell already borrowed". Build the file contents before taking the borrow. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/repository/filesystem_repository.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/shirabe/src/repository/filesystem_repository.rs b/crates/shirabe/src/repository/filesystem_repository.rs index 30c01e8..0dae316 100644 --- a/crates/shirabe/src/repository/filesystem_repository.rs +++ b/crates/shirabe/src/repository/filesystem_repository.rs @@ -324,9 +324,10 @@ impl FilesystemRepository { &repo_dir, )?; + let installed_php = format!("