Dependency on menu_clickthrough_widgets in system.menu.main

Created on 27 September 2024, about 2 months ago

Problem/Motivation

In config/install/system.menu.main.yml there are third party settings for the menu_clickthrough module, see https://git.drupalcode.org/project/dropsolid_rocketship_profile/-/blob/6.... That module however is not always enabled, only when the rocketship_blocks module is enabled (it has a dependency on it).
After installing rocketship without rocketship_blocks, and then exporting the config with drush cex, it seems like the dependency is automatically added to config/sync/system.menu.main.yml , even if that module is not enabled.
When attempting to import the config again with drush cim, you will then get this error:

The import failed due to the following reasons:                                                                                                                                    
  Configuration <em class="placeholder">system.menu.main</em> depends on the <em class="placeholder">Menu Clickthrough widgets</em> module that will not be installed after import.

Proposed resolution

Either:
* add the module as a dependency
* remove the third party setting from system.menu.main.yml (preferred), and maybe inject that third party setting in a different way, e.g. when the module is installed via its hook_install().

🐛 Bug report
Status

Active

Version

6.2

Component

Code

Created by

🇧🇪Belgium Cyberwolf

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

Comments & Activities

Production build 0.71.5 2024