In Drupal9 , if a module has dependencies, as in
my_master_module.info.yml
dependencies:
- dependency1:dependency1
- dependency2:dependency2
you cant disable/uninstall any of these dependencies using the UI - the checkbox to do that is disabled.
However, if a (custom) modules dependencies have updated, the dependant module does not automatically get enabled. You can also not enable it using the UI, because the checkbox is disabled.
In fact, if you use drush to enable the already enabled module, it seemingly tries to enable its dependencies, but it doesn't:
./drush pm:enable my_master_module
The following module(s) will be enabled: dependency1, dependency2
Do you want to continue? (yes/no) [yes]:
> yes
[success] Successfully enabled: dependency1, dependency2
But then .. it did not.
Is there a way to update/reload a custom modules dependencies, so, that Drupal enables all the dependant modules ?