Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This work for me
composer require vendor/package=version
But this is not
drupal composer-manager require vendor/package=version
https://github.com/andytruong/composer_manager/commit/05f11279a7b44c3ec2...
Comment | File | Size | Author |
---|---|---|---|
05f11279a7b44c3ec202f8ce72e18c91a1001c8d.patch | 1.45 KB | thehong |
Comments
Comment #1
cpliakas CreditAttribution: cpliakas commentedHi thehong.
Thanks for the contribution. The arguments are definitely supposed to be passed, so I'll try out your patch.
Once concern I have with what you posted is that the
require vendor/package=version
will likely not work as expected. It will require the package when you run the command, however the package definition will be overwritten whenever Composer Manager rebuilds the composer.json file. I just want to make sure that you are aware that if you are requiring a package through this mechanism that you will have to run it every time you update composer dependencies.Thanks!
Chris
Comment #2
cpliakas CreditAttribution: cpliakas commentedRegardless of my comment, the patch works as expected.
Thanks for the contribution!
Comment #8
cpliakas CreditAttribution: cpliakas commented