Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291828

Having installation profiles in system.module.yml causes config import to fail

$
0
0

While testing #1808248: Add a separate module install/uninstall step to the config import process I was running a test where I was getting a config export of the standard installation profile, setting up a new drupal install on minimal, and then trying to do a config import of the standard profile YAML files.

Because we have standard: '1000' inside the system.module.yml when we come to do a config import it tries to enable the module 'standard'.
We can get around the module enable issue by filtering out any install profiles in the function that enables all the modules that need to be enabled, but that doesn't feel quite right.

Additionally, after running the config import, it still shows system.module as having config changes that need to be imported, and doing a diff between the staging and active directories, shows that is because it still thinks 'standard' needs to be imported.

Maybe it would be a better idea to have a system.profile.yml file, which included just the installation profile. This would perhaps get around the config import issues, and it may make more sense, given that standard is a profile, and not a module?


Viewing all articles
Browse latest Browse all 291828

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>