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

Invalid version string "1.1.0,,<2.0" #305

Open
Zaporozhec7 opened this issue Jul 5, 2017 · 5 comments
Open

Invalid version string "1.1.0,,<2.0" #305

Zaporozhec7 opened this issue Jul 5, 2017 · 5 comments

Comments

@Zaporozhec7
Copy link
Contributor

When I try to update packages, was faced with this issue:

[UnexpectedValueException]
Could not parse version constraint >=1.1.0,,<2.0: Invalid version string "1.1.0,,<2.0"

While trying to find cause of this exception i was found that it was caused by whitespace after comma. And i'm not sure, but seems that constraint was created from constraint "^3.0.1".

In my case, as temporary solution, was help adding:

$range = str_replace(', ', ',', $range);

After this line

@Zaporozhec7
Copy link
Contributor Author

Seems that was wrong solution, although exception dissapear, appear many strange bugs.

If that will help to fix that issue (exception), seems it caused by this package - https://github.com/uxsolutions/bootstrap-datepicker

@nfodev
Copy link

nfodev commented Jul 18, 2017

I had the same issue, also bootstrap-datepicker (v1.7.1) I added this simple code as a dirty workaround for now:

(composer-asset-plugin/Converter/SemverConverter.php line 65)

if ($range === '>=1.1.0, <2.0') {
    $range = '>=1.1.0,<2.0';
}

I'm not sure if it's a wrong range used by bootstrap-datepicker or if it should be changed in composer-asset-plugin..?

@francoispluchino
Copy link
Member

If it works for NPM or Bower, it's a bug.

@francoispluchino francoispluchino added 1.x and removed 1.x labels Sep 7, 2017
@zhdanovartur
Copy link

So?

@francoispluchino
Copy link
Member

If you have a patch, I take. It happens in the SemverConverter class

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

No branches or pull requests

4 participants