Config export exports changes in splitted config without confirmation pretending the configuration is identical.

Created on 1 September 2022, over 2 years ago
Updated 21 March 2023, about 2 years ago

Problem/Motivation

Changes in splitted configuration are exported silently when doing drush cex.
drush cex says :

[notice] The active configuration is identical to the configuration in the export directory (../config/sync).

but exports changes anyway.

It only occurs when changes belong to a splitted configs.

Experienced it with config_split rc1 and rc3 (tested on a core 9.3.21)
Version used :

  • drupal/config_filter 2.4.0
  • drupal/config_ignore 2.3.0
  • drupal/config_split 2.0.0-rc3

Steps to reproduce

Install configs split 2.x

  • Create and activate a split
  • Partial split system.site
  • Export config
  • Change the site name
  • Export config

You'll see

❯ drush cex  
 [notice] The active configuration is identical to the configuration in the export directory (../config/sync).
../config/sync

>>> NO CONFIRMATION

❯ git status
On branch develop
Your branch is up to date with 'origin/develop'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   ../config/dev/system.site.yml

>>> YOU SHOULD NORMALLY HAVE NO CHANGE TO COMMIT

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇫🇷France ericdsd France

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.71.5 2024