Skip to content

Conversation

mmlado
Copy link
Contributor

@mmlado mmlado commented May 27, 2016

composer require bower-asset/backbone.marionette
gives error:
Could not parse version constraint <=1.3.x: Invalid version string "1.3.x"

It's dependencies has been updated to:
"backbone": "1.0.0 - 1.3.x",

Solution.
Convert versions in this format properly. Set the version in question to be < and increment the last number before the x by one.
1.0.0 - 1.3.x => >=1.0.0,<1.4.0
1.0 - 1.x => >=1.0,<2.0

Unit tests added and they work.

Issue fix: #221

@francoispluchino francoispluchino merged commit f225cbe into fxpio:master May 27, 2016
@francoispluchino
Copy link
Member

Thank you!

@nelson6e65
Copy link

How can I exclude versions in a range?
^1.0, but excluding from 1.10 to 1.12?

@francoispluchino
Copy link
Member

@nelson6e65 I would think to that ^1.0 <1.10 | ^1.0 >1.12. because ^1.0 <1.10 >1.12 is not available.

You can see the Composer versions doc for more details.

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

Successfully merging this pull request may close these issues.

composer require bower-asset/backbone.marionette: Could not parse version constraint <=1.3.x: Invalid version string "1.3.x"
3 participants