You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the command drupal config:export does not honor that setting.
How to reproduce
Enable a module, like devel on your local site.
Add the devel module to the list of excluded configuration in your settings.local.php file:
$settings['config_exclude_modules'] = ['devel'];
Export your site's config using drush>10 with drush cex OR using the admin interface at /admin/config/development/configuration/full/export. You should not have any devel.settings.yml files, and your core.extension.yml file should not reference the devel module.
Now run drupal config:export.
Notice that there is now a devel.settings.yml file (among other devel files), and your core.extension.yml lists devel as a module.
Problem/Motivation
But the command
drupal config:export
does not honor that setting.How to reproduce
devel
on your local site.devel
module to the list of excluded configuration in your settings.local.php file:Export your site's config using drush>10 with
drush cex
OR using the admin interface at/admin/config/development/configuration/full/export
. You should not have anydevel.settings.yml
files, and yourcore.extension.yml
file should not reference the devel module.Now run
drupal config:export
.Notice that there is now a
devel.settings.yml
file (among other devel files), and yourcore.extension.yml
listsdevel
as a module.Solution
Drush added support for this to the 10.rc-3 version with this commit: drush-ops/drush@11cc24b. It looks like the magic is in an additional call with a parameter in the service, but I don't know how translatable that is to the drupal console:
drush-ops/drush@11cc24b#diff-688fa7217de68ca8060c51c10c1cd249R6
The text was updated successfully, but these errors were encountered: