aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/installer.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-17 18:13:52 +0900
committernsfisis <nsfisis@gmail.com>2026-05-17 18:15:02 +0900
commitdb5b360d5f1ddfdc6ba7cce6704b41310b715f70 (patch)
treef4eac54a88ce2ffb6cf7c1812fb5f54884a8b638 /crates/shirabe/src/installer.rs
parent189b0ffcf2f28e4e51cb28c79d834e94cf57d216 (diff)
downloadphp-shirabe-db5b360d5f1ddfdc6ba7cce6704b41310b715f70.tar.gz
php-shirabe-db5b360d5f1ddfdc6ba7cce6704b41310b715f70.tar.zst
php-shirabe-db5b360d5f1ddfdc6ba7cce6704b41310b715f70.zip
fix(compile): add missing PackageInterface and RepositoryInterface impls
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/installer.rs')
-rw-r--r--crates/shirabe/src/installer.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/shirabe/src/installer.rs b/crates/shirabe/src/installer.rs
index 0aeb52b..b32e47b 100644
--- a/crates/shirabe/src/installer.rs
+++ b/crates/shirabe/src/installer.rs
@@ -502,10 +502,10 @@ impl Installer {
let platform_repo = self.create_platform_repo(true);
let aliases = self.get_root_aliases(true);
- let mut locked_repository: Option<Box<dyn LockArrayRepository>> = None;
+ let mut locked_repository: Option<Box<LockArrayRepository>> = None;
let try_load_locked =
- || -> anyhow::Result<Result<Option<Box<dyn LockArrayRepository>>, ParsingException>> {
+ || -> anyhow::Result<Result<Option<Box<LockArrayRepository>>, ParsingException>> {
if self.locker.is_locked() {
match self.locker.get_locked_repository(true) {
Ok(r) => Ok(Ok(Some(r))),
@@ -842,7 +842,7 @@ impl Installer {
platform_repo: &PlatformRepository,
aliases: &Vec<IndexMap<String, String>>,
policy: &dyn PolicyInterface,
- locked_repository: Option<&dyn LockArrayRepository>,
+ locked_repository: Option<&LockArrayRepository>,
) -> anyhow::Result<i64> {
if self.package.get_dev_requires().is_empty() {
return Ok(0);
@@ -1296,7 +1296,7 @@ impl Installer {
fn create_policy(
&self,
for_update: bool,
- locked_repo: Option<&dyn LockArrayRepository>,
+ locked_repo: Option<&LockArrayRepository>,
) -> DefaultPolicy {
let mut prefer_stable: Option<bool> = None;
let mut prefer_lowest: Option<bool> = None;
@@ -1343,7 +1343,7 @@ impl Installer {
&self,
root_package: &dyn RootPackageInterface,
platform_repo: &PlatformRepository,
- locked_repository: Option<&dyn LockArrayRepository>,
+ locked_repository: Option<&LockArrayRepository>,
) -> Request {
let mut request = Request::new(locked_repository);
@@ -1389,7 +1389,7 @@ impl Installer {
fn require_packages_for_update(
&self,
request: &mut Request,
- locked_repository: Option<&dyn LockArrayRepository>,
+ locked_repository: Option<&LockArrayRepository>,
include_dev_requires: bool,
) {
// if we're updating mirrors we want to keep exactly the same versions installed which are in the lock file, but we want current remote metadata