Open korkhau opened 6 days ago
Hi @korkhau
Thank you for reporting this issue. If I understand your concern correctly, you would like to prevent the drs:init:settings
command from being invoked during composer install. If that’s accurate, here are two possible solutions:
Quick Solution (Option 1): Update your root's composer.json
file to disallow the "acquia/drupal-recommended-settings" plugin. I believe the DRS plugin will still be downloaded, but none of its associated events will be triggered. Ex:
"config": {
"allow-plugins": {
"acquia/drupal-recommended-settings": false
}
Recommended Solution (Option 2): Modify the SettingsDrushCommands class to implement the CustomEventAwareInterface as Drush recommend the same here. This approach allows others to define and implement a custom event that determines whether command drs:init:settings
should be executed or skipped.
Describe the bug BLT allowed for configuration overrides; for example, we had
init
disabled:To Reproduce
composer install
/default/settings.php
Expected behavior By using
/drs/config.yml
we should be able to disable running of/bin/drush drs:init:settings
oncomposer install
as it is in BLTAdditional context
onPostCmdEvent
does not take into account any properties from config at all: