From f642329554cf18734e671dc4758bc045de489999 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 25 Jul 2026 23:25:56 +0900 Subject: fix(package-discovery): honor ignored platform reqs in shadowed-repo lookup The ALLOW_SHADOWED_REPOSITORIES probe that decides whether to raise the repository-priority error hardcoded ignoreNothing(), while PHP reuses $platformRequirementFilter. With --ignore-platform-req the probe could fail to find the lower-priority package and suppress the error PHP would raise. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe/src/command/package_discovery_trait.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/shirabe') diff --git a/crates/shirabe/src/command/package_discovery_trait.rs b/crates/shirabe/src/command/package_discovery_trait.rs index 8e34fed0..6fb83676 100644 --- a/crates/shirabe/src/command/package_discovery_trait.rs +++ b/crates/shirabe/src/command/package_discovery_trait.rs @@ -576,7 +576,7 @@ pub trait PackageDiscoveryTrait: BaseCommand { name, None, preferred_stability, - Some(PlatformRequirementFilterFactory::ignore_nothing()), + Some(platform_requirement_filter.clone()), RepositorySet::ALLOW_SHADOWED_REPOSITORIES, None, ShowWarnings::Always, -- cgit v1.3.1