I want to confirm some behavior of Composer to see if this is a limitation of Composer or something I did wrong.
This is based on an issue in the Markdown module queue.
Basically, here's the issue.
- The Markdown module requires
^0.15
of a library. - I wrote a patch to require
~0.15
of the library. (to allow 0.16, 0.17, etc.)
But, when I apply this patch via Composer, and then try to update the library, I still get a drupal/markdown 1.2.0 requires league/commonmark (^0.15.0)
even though the module's (patched) code on my site requires ~0.15
.
So, is there no way to "patch" a composer.json so that it will be picked up for composer update
? Am I reliant on the module maintainer to commit the patch?