diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-04 17:53:20 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-04 17:53:20 +0900 |
| commit | afe51053abd338e50fcc0fee3ba641721058da26 (patch) | |
| tree | 107faafd464123f0b38cc3bd31cb9287c741f05f /crates/shirabe/src/package/version.rs | |
| parent | 31f6ac69794361cdaee52cba0213a1b4da4932ac (diff) | |
| download | php-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/package/version.rs')
0 files changed, 0 insertions, 0 deletions
