Open mariacha opened 4 years ago
The magic was added to drush here: https://github.com/drush-ops/drush/pull/4061 when exporting simply use the export storage and when importing use the import transformer to transform the storage before passing it on to the config importer. See also: https://www.drupal.org/node/3037022 and https://www.drupal.org/node/3066005#invoking-transformer
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: https://github.com/drush-ops/drush/commit/11cc24b7f55b26ddff2a638824eb16bb6dcb5f1e. 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: https://github.com/drush-ops/drush/commit/11cc24b7f55b26ddff2a638824eb16bb6dcb5f1e#diff-688fa7217de68ca8060c51c10c1cd249R6