Add pm-uninstall option to automatically uninstall dependent modules #1854

Open
colans opened this Issue Dec 11, 2015 · 2 comments

Projects

None yet

3 participants

@colans
Contributor
colans commented Dec 11, 2015

For Drupal 8, there's no more "drush pm-disable" command to turn off modules & such (say for development sites). They now need to be uninstalled. But in Drupal 7-, "dis" automatically uninstalled dependent modules as well. There's no such functionality in pm-uninstall to do the same sort of thing in Drupal 8.

We should add a pm-uninstall option that takes care of this, something like "--remove-dependents".

@weitzman weitzman added the area-pm label Dec 13, 2015
@danepowell
Contributor
danepowell commented Jan 24, 2017 edited

The current situation is actually pretty bad, in that you can't even uninstall two dependent modules in the same call to pm-uninstall. It seems like pmu checks the dependency chain before actually attempting to uninstall any modules, so if one module depends on another only the one is uninstalled, and you have to run pmu a second time. This is really painful for any sort of CI system.

@danepowell danepowell added a commit to danepowell/drush that referenced this issue Jan 24, 2017
@danepowell danepowell Issue #1854: Allow uninstall of dependent modules. 91a7d4a
@danepowell
Contributor

See #2566, I think this is actually a regression introduced by #925

@weitzman weitzman added a commit that referenced this issue Feb 14, 2017
@danepowell @weitzman danepowell + weitzman Issue #1854: Allow uninstall of dependent modules. (#2566)
* Issue #1854: Allow uninstall of dependent modules.

* Updated documentation.

* List all modules to be uninstalled.
f7167cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment