Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ignoring the upper bound of platform requirements using "name+" notation #10318

Merged
merged 2 commits into from
Dec 7, 2021

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented Nov 28, 2021

e.g. --ignore-platform-req=php+ ignores the upper bound of the php requirements.

  • TODO docs but would like to hear if anyone has objections to the idea/impl first

Fixes #9534

@Seldaek Seldaek added this to the 2.2 milestone Nov 28, 2021
@Seldaek Seldaek requested a review from naderman November 28, 2021 12:37
@Seldaek Seldaek force-pushed the ignore_upper_bounds branch 2 times, most recently from e49fa7b to 2b80b14 Compare November 28, 2021 12:44
@derrabus
Copy link
Contributor

Thank you for working on this feature!

@herndlm
Copy link
Contributor

herndlm commented Nov 28, 2021

Hehe, I had a similar idea. Really glad to see that the ignore platform reqs refactoring was helpful :)

@Seldaek Seldaek force-pushed the ignore_upper_bounds branch from 2b80b14 to b89f7be Compare November 28, 2021 14:40
@Seldaek
Copy link
Member Author

Seldaek commented Nov 28, 2021

@herndlm yeah this definitely enabled a much easier implementation for this use case.

@Seldaek Seldaek force-pushed the ignore_upper_bounds branch from b89f7be to c29251a Compare December 5, 2021 14:31
@Seldaek Seldaek force-pushed the ignore_upper_bounds branch from 7586749 to ff04836 Compare December 7, 2021 08:51
@Seldaek Seldaek force-pushed the ignore_upper_bounds branch from ff04836 to 637feab Compare December 7, 2021 12:21
@Seldaek Seldaek force-pushed the ignore_upper_bounds branch from 637feab to ca5d5b4 Compare December 7, 2021 12:24
@Seldaek Seldaek merged commit 005117d into composer:main Dec 7, 2021
does not fulfill it. Multiple requirements can be ignored via wildcard. Appending
a `+` makes it only ignore the upper-bound of the requirements. For example, if a package
requires `php: ^7`, then the option `--ignore-platform-req=php+` would allow installing on PHP8,
but installation on PHP 5.6 would still fail.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it's PHP 5.6, but then PHP8. There is a space missing there ;-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix ;)

@Seldaek Seldaek deleted the ignore_upper_bounds branch December 19, 2021 11:38
@dg
Copy link
Contributor

dg commented Nov 21, 2023

It seems to unnecessarily print the error message Cannot use texy/texy's latest version v3.2.0 as it requires php 8.1 - 8.3 which is not satisfied by your platform., although it does install the library.

@Seldaek
Copy link
Member Author

Seldaek commented Nov 21, 2023

@dg Yeah that warning is handled somewhere else, please open a new issue with details how to repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Ignore only upper bound platform reqs
6 participants