-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Conversation
e49fa7b
to
2b80b14
Compare
Thank you for working on this feature! |
Hehe, I had a similar idea. Really glad to see that the ignore platform reqs refactoring was helpful :) |
2b80b14
to
b89f7be
Compare
@herndlm yeah this definitely enabled a much easier implementation for this use case. |
b89f7be
to
c29251a
Compare
src/Composer/Filter/PlatformRequirementFilter/IgnoreListPlatformRequirementFilter.php
Show resolved
Hide resolved
...er/Test/Fixtures/installer/update-ignore-platform-package-requirement-list-upper-bounds.test
Show resolved
Hide resolved
...er/Test/Fixtures/installer/update-ignore-platform-package-requirement-list-upper-bounds.test
Outdated
Show resolved
Hide resolved
7586749
to
ff04836
Compare
...er/Test/Fixtures/installer/update-ignore-platform-package-requirement-list-upper-bounds.test
Outdated
Show resolved
Hide resolved
ff04836
to
637feab
Compare
…ng "name+" notation
…hich are not really loaded in general
637feab
to
ca5d5b4
Compare
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. |
There was a problem hiding this comment.
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 ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix ;)
It seems to unnecessarily print the error message |
@dg Yeah that warning is handled somewhere else, please open a new issue with details how to repro. |
e.g.
--ignore-platform-req=php+
ignores the upper bound of the php requirements.Fixes #9534