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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nickgs’s picture

I've hit this myself. I haven't had time to really dig in but it would be helpful to be able to skip this.

odegard’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Component: Documentation » Code
Status: Active » Needs review
FileSize
2.59 KB

Here'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.

deviantintegral’s picture

Status: Needs review » Closed (duplicate)

This 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.