Closed rudolfbyker closed 4 years ago
Actually, I can fix this in my project by adding "pear/file_marc": "1.1.x",
to require
, but it feels like it should be fixed on a lower level. Maybe change ^1.1
to 1.1.x
? I'm not sure how composer resolves the final version numbers, but it seems that 1.1.x
takes precedence over @dev
, but ^1.1
does not. Or maybe I'm missing something completely.
I think that's expected behaviour for the caret operator
Ideally there should be no breaking changes before 2.0, so ^1.1
is interpreted as >= 1.1.0 < 2.0.0
.
~1.1.0
could have been used to limit to <1.2.0
Whoops. I must have been reading the wrong docs.
I'm not sure whether this is a bug with php-marc, or with some other dependency of it, or with composer, but here goes...
I have a composer.json file like this:
composer update
gives the following output:So
pear/file_marc 1.4.0
is installed, even thoughscriptotek/marc
asks for^1.1
:But maybe the problem lies in the
composer.json
file fromck/file_marc_reference
:I'm not sure whether this is something that should be solved in
ck/file_marc_reference
, inscriptotek/marc
or in my own project.