aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-04 17:53:20 +0900
committernsfisis <nsfisis@gmail.com>2026-07-04 17:53:20 +0900
commitafe51053abd338e50fcc0fee3ba641721058da26 (patch)
tree107faafd464123f0b38cc3bd31cb9287c741f05f /crates/shirabe/src/command.rs
parent31f6ac69794361cdaee52cba0213a1b4da4932ac (diff)
downloadphp-shirabe-afe51053abd338e50fcc0fee3ba641721058da26.tar.gz
php-shirabe-afe51053abd338e50fcc0fee3ba641721058da26.tar.zst
php-shirabe-afe51053abd338e50fcc0fee3ba641721058da26.zip
fix(package): reset repository/id on package clone
AnyPackage::dup() (PHP's `clone $package`) copied the `repository` and `id` fields verbatim instead of resetting them like PHP's BasePackage::__clone() does. LibraryInstaller::install() relies on the duplicate being unbound so it can register the package with the local repository; without the reset, add_package() silently failed with "A package can only be added to one repository", leaving installed.json empty after every install/create-project run.
Diffstat (limited to 'crates/shirabe/src/command.rs')
0 files changed, 0 insertions, 0 deletions