fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

Could not parse version constraint >=~2: Invalid version string "~2" #270

Closed badbreze closed 7 years ago

badbreze commented 7 years ago

https://github.com/fxpio/composer-asset-plugin/issues/129

Like this isue we had a problem with version constraint, we're trying to use philippfrenzel/yii2fullcalendar, this package requires fullcalendar/fullcalendar but as of few hours the project owner has updated the version control of Jquery FROM:

"jquery": ">=2.0.0", "moment": ">=2.9.0"

TO

"jquery": "2 - 3", "moment": "^2.9.0"

How we can get a fix for this?

simocheccoli commented 7 years ago

I've got this error too. @francoispluchino we tried to change your test adding to SemverConverterTest in getTestRanges function an item with array('2 - 3').

Test failure...

francoispluchino commented 7 years ago

It is not the same problem as the issue #129.

2 - 3 is converted into >=~2,<4.0 and not >=2,<4.0. I work to solve this bug.

francoispluchino commented 7 years ago

Fixed by 623fe6b9bb28fa23b64efc208d53d6d3fcf84170.

p2made commented 7 years ago

So any special steps we should take to get your update on our systems? Are you going to release a new version?

francoispluchino commented 7 years ago

To update the plugin on the current branch of dev:

$ composer global require fxp/composer-asset-plugin:~1.3@dev

The stable version will arrive coming soon, see the 1.3.0 milestone.