Skip to content
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

VersionParser crashed on version constraint like "dev-load-varnish-only-when-used as ^2.0@dev" #107

Closed
gemozlobin2 opened this issue Sep 8, 2020 · 1 comment
Labels

Comments

@gemozlobin2
Copy link

gemozlobin2 commented Sep 8, 2020

After update composer to version 1.10.11 I'm getting error from update command at any project

[UnexpectedValueException]
Could not parse version constraint dev-load-varnish-only-when-used as ^2.0@dev: Invalid version string "^2.0@dev"

Launch composer with -vvv option show

app@host:~$ composer update --dry-run -vvv
... skip
Downloading http://repo.packagist.org/p/symfony/polyfill-php70%24688cb065da992de6111ec75cde05ada182f93b8e58dbef5bb21674c882aa334e.json
Writing /home/app/.composer/cache/repo/https---repo.packagist.org/provider-symfony$polyfill-php70.json into cache

[RuntimeException]
Could not load package ezsystems/ezplatform in http://repo.packagist.org: [UnexpectedValueException] Could not parse version constraint dev-load-varnish-only-when-used as ^2.0@dev: Invalid version str
ing "^2.0@dev"

https---repo.packagist.org/provider-symfony$polyfill-php70.json contains string "ezsystems/ezplatform-http-cache":"dev-load-varnish-only-when-used as ^2.0@dev" that break last semver commit 07ed0f4#diff-d31fb7758d82628c36d95136856a69ca

@gemozlobin2 gemozlobin2 changed the title VersionParser crashed on version constraint like dev-load-varnish-only-when-used as ^2.0@dev VersionParser crashed on version constraint like "dev-load-varnish-only-when-used as ^2.0@dev" Sep 8, 2020
@flack
Copy link

flack commented Sep 8, 2020

Can confirm the issue (I had reported it as composer/composer/issues/9191)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants