From 8c4dc6cd48457f154eb067f296d79ef911573c91 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 26 Jun 2026 02:26:08 +0900 Subject: fix(check-platform-reqs-command): add PlatformRepository to existing composite execute nested the already-built InstalledRepository inside a second InstalledRepository, tripping the assertion that an InstalledRepository may not contain another. PHP adds a PlatformRepository to the existing composite via addRepository; do the same. Un-ignores CheckPlatformReqsCommandTest::test_failed_platform_requirement. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/command/licenses_command.rs | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'crates/shirabe/src/command/licenses_command.rs') diff --git a/crates/shirabe/src/command/licenses_command.rs b/crates/shirabe/src/command/licenses_command.rs index e8d62cc..f2672bd 100644 --- a/crates/shirabe/src/command/licenses_command.rs +++ b/crates/shirabe/src/command/licenses_command.rs @@ -201,11 +201,7 @@ impl Command for LicensesCommand { let mut table = Table::new(output); table.set_style("compact".into())??; - table.set_headers(vec![ - "Name".into(), - "Version".into(), - "Licenses".into(), - ]); + table.set_headers(vec!["Name".into(), "Version".into(), "Licenses".into()]); for package in &packages { let link = PackageInfo::get_view_source_or_homepage_url(package.clone()); let name = if let Some(link) = link { @@ -227,14 +223,17 @@ impl Command for LicensesCommand { } else { pkg_licenses.join(", ") }; - table.add_row(PhpMixed::List(vec![ - PhpMixed::String(name), - PhpMixed::String(package.get_full_pretty_version( - true, - crate::package::DisplayMode::SourceRefIfDev, - )), - PhpMixed::String(licenses_str), - ]).into()); + table.add_row( + PhpMixed::List(vec![ + PhpMixed::String(name), + PhpMixed::String(package.get_full_pretty_version( + true, + crate::package::DisplayMode::SourceRefIfDev, + )), + PhpMixed::String(licenses_str), + ]) + .into(), + ); } table.render(); } -- cgit v1.3.1