Can't deploy the module config to a site that doesn't already have the module enabled

Created on 6 June 2022, about 2 years ago
Updated 3 October 2023, 9 months ago

Problem/Motivation

Attempting to deploy the config for this module to a site that doesn't already have the module enabled fails with an error:

[error] Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization.
Configuration cci_Cloudfront_auto_cache.settings depends on the cci_Cloudfront_auto_cache extension that will not be installed after import. in Drupal\Core\Config\ConfigImporter->vali
date() (line 750 of /var/www/html/web/core/lib/Drupal/Core/Config/ConfigImporter.php).

Steps to reproduce

  1. Install the module on environment A and configure automatic expiration rules.
  2. Export the site config to the filesystem.
  3. Deploy updated config to environment B and run a drush cim.
  4. Observe the error listed above.

Proposed resolution

It appears this module is using some old naming for its configuration. It's also trying to leverage 2 separate settings files (cci_Cloudfront_auto_cache.settings and cci_Cloudfront_cache.settings). Even though the settings files don't explicitly declare any dependencies, it appears Drupal is making some assumptions about dependencies based on the filenames themselves. I think we need to go down to a single settings file and it needs to be named to match the module name.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇺🇸United States azinck

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024