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.
When working on a module I run
drush dre module_name -y
several times. It involves many steps and -y enables me to just sit back and watch.
But this also updates the packages managed by composer. Is there a way to run the above command without doing the composer stuff?
Comment | File | Size | Author |
---|---|---|---|
#2 | composer_manager-skip_composer_drush-2441995-2.patch | 2.59 KB | odegard |
Comments
Comment #1
nickgs CreditAttribution: nickgs commentedI've hit this myself. I haven't had time to really dig in but it would be helpful to be able to skip this.
Comment #2
odegard CreditAttribution: odegard commentedHere's a patch that adds the option --skip-composer to drush pm commands like those used with the devel alias dre.
Example on usage:
drush dre module_name -y --skip-composer
I'd be happy to change the option name, or the quite verbose documentation on the new hook implementation if wanted.
Comment #3
deviantintegral CreditAttribution: deviantintegral at Lullabot commentedThis is now handled properly from the CLI if you set the composer_manager_autobuild_file variable through the config UI or settings.php. See #2545680: Autobuild settings are not honored on the CLI for details.