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/advisory/auditor.rs | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'crates/shirabe/src/advisory/auditor.rs') diff --git a/crates/shirabe/src/advisory/auditor.rs b/crates/shirabe/src/advisory/auditor.rs index fd54595..6c520fb 100644 --- a/crates/shirabe/src/advisory/auditor.rs +++ b/crates/shirabe/src/advisory/auditor.rs @@ -467,10 +467,13 @@ impl Auditor { table .set_horizontal(true) .set_headers(headers.into_iter().map(|h| h.into()).collect()); - table.add_row(ConsoleIO::sanitize( - PhpMixed::List(row.into_iter().map(PhpMixed::String).collect()), - false, - ).into()); + table.add_row( + ConsoleIO::sanitize( + PhpMixed::List(row.into_iter().map(PhpMixed::String).collect()), + false, + ) + .into(), + ); table .set_column_width(1, 80) .set_column_max_width(1, 80) @@ -589,13 +592,16 @@ impl Auditor { } else { "none".to_string() }; - table.add_row(ConsoleIO::sanitize( - PhpMixed::List(vec![ - PhpMixed::String(self.get_package_name_with_link(pkg.clone().into())), - PhpMixed::String(replacement), - ]), - false, - ).into()); + table.add_row( + ConsoleIO::sanitize( + PhpMixed::List(vec![ + PhpMixed::String(self.get_package_name_with_link(pkg.clone().into())), + PhpMixed::String(replacement), + ]), + false, + ) + .into(), + ); } table.render(); -- cgit v1.3.1