Problem/Motivation
I can't install CodeMirror because it requires an old version (~1.0) of composer installers.
Steps to reproduce
Running ...
composer require 'drupal/ckeditor_codemirror:^3.0@beta'
... i get the following error:
codemirror/codemirror 5.65.8 requires composer/installers ~1.0 -> found composer/installers[v1.0.0, ..., 1.x-dev] but it conflicts with your root composer.json require (^2.0).
Proposed resolution
I changed the required version in the file composer.libraries.json from
"composer/installers": "~1.0"
to
"composer/installers": "1.0 - 2"
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | ckeditor_codemirror-composer_requirements-3341595-4.patch | 670 bytes | tfranz |
| #2 | ckeditor_codemirror-composer_requirements-3341595-2.patch | 660 bytes | tfranz |
Comments
Comment #2
tfranz commentedPatch for my problem.
Comment #3
wellsThanks for flagging.
One minor CR for the #2 patch -- lets do
1 || 2instead. If only because I see that pattern far more often then hyphenated ranges. And I think it's the same thing?Comment #4
tfranz commentedYes, you are right – but
1 || 2was downgrading my composer/installers from v2.2.0 => v2.0.0So i changed it to
"^1.0 || ^2.0"I hope that's right - I don't have a lot of experience with that kind of stuff ... at least it works for me ... :-)
I was afraid of using
>=1.0because i don't know if this will break something someday. Actually, I think it shouldn't be a problem in this context.Comment #5
wellsLooks right to me. I also find composer constraints confusing (:
Comment #7
wells