aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-28 23:34:58 +0900
committernsfisis <nsfisis@gmail.com>2026-06-28 23:34:58 +0900
commit1909f94b8f4634a7b5abef2ebf4de92b56f4091c (patch)
tree6c42919dc02c01daeeff27ddee732428a854798f /crates/shirabe/src/command
parent1a85368838c1e482f2a7020ff1cbdc87fcb092cc (diff)
downloadphp-shirabe-1909f94b8f4634a7b5abef2ebf4de92b56f4091c.tar.gz
php-shirabe-1909f94b8f4634a7b5abef2ebf4de92b56f4091c.tar.zst
php-shirabe-1909f94b8f4634a7b5abef2ebf4de92b56f4091c.zip
fix(repository): flatten InstalledRepository and unwrap filter repos in show
flattenRepositories must recurse into InstalledRepository (which extends CompositeRepository in PHP) and ShowCommand must unwrap FilterRepository when categorizing repos. Without this, installed/locked/platform packages all fell through to the "available" bucket, dropping the version column and per-section grouping. Un-ignores 10 show_command tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command')
-rw-r--r--crates/shirabe/src/command/show_command.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe/src/command/show_command.rs b/crates/shirabe/src/command/show_command.rs
index 6e777a1..4f7403d 100644
--- a/crates/shirabe/src/command/show_command.rs
+++ b/crates/shirabe/src/command/show_command.rs
@@ -862,7 +862,7 @@ impl Command for ShowCommand {
input.borrow_mut().set_option("path", PhpMixed::Bool(false));
}
- for repo in RepositoryUtils::flatten_repositories(repos.clone(), false) {
+ for repo in RepositoryUtils::flatten_repositories(repos.clone(), true) {
let r#type = if Self::same_repository(&repo, &platform_repo) {
"platform"
} else if locked_repo