aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/base_dependency_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/base_dependency_command.rs')
-rw-r--r--crates/shirabe/src/command/base_dependency_command.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/shirabe/src/command/base_dependency_command.rs b/crates/shirabe/src/command/base_dependency_command.rs
index 9317b31..decfd5b 100644
--- a/crates/shirabe/src/command/base_dependency_command.rs
+++ b/crates/shirabe/src/command/base_dependency_command.rs
@@ -106,17 +106,18 @@ pub trait BaseDependencyCommand: BaseCommand {
repos.push(local_repo);
- let platform_overrides = composer
+ let platform_overrides: IndexMap<String, PhpMixed> = composer
.get_config()
.borrow()
.get("platform")
.as_array()
.cloned()
- .unwrap_or_default();
- // TODO(phase-b): platform_overrides type adjustment; using empty for now
- let _ = platform_overrides;
+ .unwrap_or_default()
+ .into_iter()
+ .map(|(k, v)| (k, *v))
+ .collect();
repos.push(crate::repository::RepositoryInterfaceHandle::new(
- PlatformRepository::new(vec![], IndexMap::new())?,
+ PlatformRepository::new(vec![], platform_overrides)?,
));
}