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 update with version 1.10.12 throws RuntimeException #9196
Comments
This is my Travis build, showing the error: https://travis-ci.com/github/GraphQLAPI/graphql-api-for-wp/jobs/382623875 I had to temporarily do a self-update to 1.10.10 for the build to work again |
+1 |
Please try again with 1.10.13. |
Should be resolved by 1.10.13 yes |
Yes, fixed 👏 |
We can reproduce a similar issue on a Drupal module and Composer 1.10.13: {
"name": "example/example",
"type": "project",
"license": "proprietary",
"require": {
"drupal/recaptcha": "^2.4"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
} > composer update
[RuntimeException]
Could not load package drupal/recaptcha in https://packages.drupal.org/8: [UnexpectedValueException] Could not parse version constraint dev: Invalid version string "dev"
[UnexpectedValueException]
Could not parse version constraint dev: Invalid version string "dev" |
@cilefen yes I am aware of that, I reached out to the Drupal repo maintainers to get it resolved. Note that as a workaround if you upgrade to Composer 2 RC1 I believe it should not fail anymore, as thanks to the optimizations we did it should not load the affected package version (drupal/recaptcha 2.0.0). |
@Seldaek Thank you for the quick reply! |
@Seldaek Your message got through. I'm communicating on Slack about it. ...and congratulations on the RC! |
FWIW Composer 2.0.0-RC1 produces the same exception ^ on that package. |
Ok it could be more versions are affected than I thought. I didn't look so in depth. I guess for now if you need the drupal repo you better pin to an older composer version then, 1.10.10 (or 2.0.0-alpha3) should be safe. |
Apologies if you're aware of this problem, but I don't see it issued.
My
composer.json
:Output of
composer diagnose
:When I run this command:
I get the following output:
And I expected this to happen:
It should work.
Btw, version 1.10.11 also fails, producing a different error:
With version 1.10.10 it works perfectly
The text was updated successfully, but these errors were encountered: