diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-25 23:25:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-25 23:25:56 +0900 |
| commit | f642329554cf18734e671dc4758bc045de489999 (patch) | |
| tree | fc5cd78c43eb0d49c4617cdccaba7636c0c9ed56 | |
| parent | f47b9ad7e108f29f657459569b2a41f5cdf0a74a (diff) | |
| download | php-shirabe-f642329554cf18734e671dc4758bc045de489999.tar.gz php-shirabe-f642329554cf18734e671dc4758bc045de489999.tar.zst php-shirabe-f642329554cf18734e671dc4758bc045de489999.zip | |
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) <noreply@anthropic.com>
| -rw-r--r-- | crates/shirabe/src/command/package_discovery_trait.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
