-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Fix component version constraint in bridges #39571
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
Conversation
😭 Would setting a branch alias on the notifier package help? |
@derrabus Probably, but I'll let @nicolas-grekas confirm it's desirable. |
How does composer behave if we use the |
f7a5a2f
to
b907f97
Compare
@nicolas-grekas Tried using |
b907f97
to
6f1a952
Compare
6f1a952
to
42d82a8
Compare
@@ -18,7 +18,7 @@ | |||
"require": { | |||
"php": ">=7.2.5", | |||
"symfony/http-client": "^4.3|^5.0", | |||
"symfony/notifier": "~5.3.0" | |||
"symfony/notifier": "^5.3" |
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.
Sure, this fixes it, but this defeats the preemptive protection against BC breaks in 5.4...
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.
^5.3,<5.4
?
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.
That doesn't work (same with a conflict rule) or any combination that forbids >=5.4.
5.x is literally interpreted as 5+ by composer, which may imply 5.4.
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.
hmm.. sounds logic.
We can't both accept 5.x
today because it points to 5.3
and refuse 5.x
when it will point to 5.4
.
Is there something to do with branch aliases?
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.
I'd like to merge this PR as it is now because I'd like to unblock our CI.
If before 5.3 RC we decide that the component remains experimental, we can branch out 5.3
and revert this PR.
42d82a8
to
bcdd5da
Compare
Composer does not resolve
~5.3.0
to 5.x-dev with--prefer-lowest
actually.