-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix incorrect version extraction when extracting php
version from composer.json
constraints
#139
Fix incorrect version extraction when extracting php
version from composer.json
constraints
#139
Conversation
Signed-off-by: Gary Lockett <gary@creativecow.uk>
Signed-off-by: Gary Lockett <gary@creativecow.uk>
Signed-off-by: Gary Lockett <gary@creativecow.uk>
Signed-off-by: Gary Lockett <gary@creativecow.uk>
Signed-off-by: Gary Lockett <gary@creativecow.uk>
Signed-off-by: Gary Lockett <gary@creativecow.uk>
f33b0ce
to
99d2e1b
Compare
Actually this appears to break Or maybe it should be if it satisfies |
I'd prefer that break. I see no good reason to indicate compatibility with 8.1.0, but not later versions in the 8.1 series. |
Indeed, broken, but "less broken than now" :D |
I'll modify the test that fails to indicate that <=8.1.0 should not match the minor 8.1 then. |
Signed-off-by: Gary Lockett <gary@creativecow.uk>
1403ab0
to
4d79cda
Compare
Actually ... I think I came up with a "better" way, at least in terms of not breaking anything that is currently expecting this operation. I believe the original intention was for the patch number to essentially be ignored, so that's exactly what I've done here. Any See https://github.com/laminas/laminas-ci-matrix-action/pull/139/files#diff-7c294c22c7ebe5a7822160fad8ac3789ab3cd7629c7b7637920ef3c72e2cc7b9R7-R20 for how this change is intended to function. |
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.
LGTM 🚢
php
version from composer.json
constraints
Description
A bug was discovered with several repositories and #136 managed to highlight the issue. This PR proposes a fix for this.
One "drawback" which is fine by me, is that since we're comparingSee Fix incorrect version extraction when extracting${installableVersion}.99
then pinned constraints such as8.0.0
won't actually work with it, but at that point, it's unlikely to run using the correct patch anyway, so maybe that shouldn't be supported.php
version fromcomposer.json
constraints #139 (comment) for how this changed.~8.1.12
to use version8.1
.