Problem/Motivation
When an install profile imports configuration during installation, StorageComparer is built directly from the raw config.storage.sync FileStorage and never passes through the config.import_transformer service. As a result, subscribers to the config import transformation event (ConfigTransformStorageEvent / StorageTransformEvent) do not run during installation (even though they run for a normal drush config:import / config import via the UI). As a result, for example, config_exclude_module is not honoured during installation.
Steps to reproduce
1. Create an install profile that installs from synced configuration, excluding a module that differs between the committed config and the install environment (e.g. the database driver module).
2. Install the profile in an environment whose active driver differs committed config (e.g. install on SQLite while config/sync tracksMySQL).
3. Installation fails: the config import tries to uninstall the live
Proposed resolution
Transform the sync storage through the config.import_transformer service in both install-time import paths, so install-time config import runs the same storage transformers as a normal configuration import.
Release notes snippet
Run the config import storage transform pipeline during install-time config import, so config_ignore / config_exclude_modules are honoured at install just like drush config:import.
| Comment | File | Size | Author |
|---|
Issue fork drupal-3609512
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
justafishComment #4
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.