aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/cache_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-20 07:09:41 +0900
committernsfisis <nsfisis@gmail.com>2026-07-20 07:28:42 +0900
commit632ed8528c3566d67dda2804beb6d9e4e9511a72 (patch)
treec11d3972666a6394eef79d679efe64cdb7e9eb4c /crates/shirabe/tests/cache_test.rs
parent63a77b1495944ad9707fe036a73f99eaec189897 (diff)
downloadphp-shirabe-632ed8528c3566d67dda2804beb6d9e4e9511a72.tar.gz
php-shirabe-632ed8528c3566d67dda2804beb6d9e4e9511a72.tar.zst
php-shirabe-632ed8528c3566d67dda2804beb6d9e4e9511a72.zip
fix(require-command): drop input borrows before determine_requirements
The Ref temporaries created by input.borrow() inside the argument expressions of the determine_requirements call lived until the end of the whole call statement, so ConsoleIO::ask_question's borrow_mut() on the same shared input RefCell panicked with "RefCell already borrowed" when the command prompted for packages. Hoist the argument computations into locals so no borrow is held across the call, and un-ignore the run_require CLI test. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/cache_test.rs')
0 files changed, 0 insertions, 0 deletions