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
defaults to wrong version of php81_bc/strftime on some systems #10884
Comments
I'm pretty sure this is not a composer version issue but rather the fact that php81_bc/strftime 0.0.3 and above requires ext-intl. I assume some of your environments do not have the intl extension enabled and those then must select php81_bc/strftime 0.0.2 to be workable. Solution on your end would be to ensure intl is enabled. Let's keep this open tho, I believe maybe we can output some hint about this in the require command when the latest version cannot be selected due to some platform constraint, as it's definitely not the first time someone wastes time on this. |
…ted in require/init/create-project, fixes #10884
…ted in require/init/create-project, fixes composer#10884
See #10896 |
…ted in require/init/create-project, fixes composer#10884
…ted in require/init/create-project, fixes composer#10884 (composer#10896)
when installing
php81_bc/strftime
on some systems, Composer defaults to version 0.0.2, not version 0.5.0, with the commandcomposer require php81_bc/strftime
, this has been observed:composer require php81_bc/strftime ^0.5.0
installs 0.5.0 every time.My
composer.json
:(composer.json doesn't have to exist to reproduce the issue)
Output of
composer diagnose
:When I run this command:
I get the following output:
And I expected this to happen:
install version 0.5.0, not version 0.0.2
the issue can be reproduced with Docker using the command
docker build .
in a directory containing this Dockerfile:However using the alternative Dockerfile
will install Ubuntu 20.04's default Composer version, which is currently 1.10.1, and install php81_bc/strftime 0.5.0
The text was updated successfully, but these errors were encountered: