-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Composer cannot resolve 2.2.8-devphp7 version #5264
Comments
Well, |
What exactly is broken with the version
Thanks for this suggestion, but I won't. |
@malkusch except for historical reasons, Composer doesn't allow semver specifically.
So |
Can you give us the output of Edit: sorry, command needs to be |
So this How about not giving
|
We don't give it a special meaning. We simply cannot parse it. This means that the installed version ends up being unrecognized, and thus it defaults to |
How about changing that? Would you accept a PR which would be able to compare |
Personally I'm ok with that, but when I first suggested to @Seldaek to support semver more according to their specification, he seemed a bit reluctant. So you'll have to convince him :-) See composer/semver repo for details. |
I guess you refer to composer/semver#15, right? |
To some extend, this was discussed there, yes. |
One possibility to improve this (since it seems impossible to get pecl devs to clean up their act) would be to add a fallback for extension versions if they don't parse we could just keep the digits |
Just pushed a fix that should make 2.2.8-devphp7 parse as 2.2.8 |
Thank you. |
Thank you! |
With the following composer.json:
Composer (6146f7a) thinks the installed extension doesn't match:
I then even tried to explicitly require that
2.2.8-devphp7
version withAnd now composer cannot parse that version:
The text was updated successfully, but these errors were encountered: