Problem/Motivation

When an install profile lists this module to be installed, the following Exception occurs:

Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by <em class="placeholder">broken_link</em> have unmet dependencies: <em class="placeholder">views.view.broken_link (views)</em> in /app/web/core/lib/Drupal/Core/Config/UnmetDependenciesException.php:98

The issue is that the module contains a views configuration in config/install/, but does not list views as a dependency, nor allows this to be optional.

Steps to reproduce

For convenience, I have reproduced the issue here. But you may reproduce it with the following steps:

  1. Create a basic install profile *.info.yml, listing the following:
    dependencies:
      - broken_link
    
  2. Install the profile.

These steps should produce the error noted above.

Proposed resolution

Move views.view.broken_link.yml from config/install/ to config/optional/.

OR

List views as a dependency in broken_link.info.yml.

CommentFileSizeAuthor
#5 broken_link-3180322-3.patch240 byteselimw
Command icon 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

jcandan created an issue. See original summary.

elimw made their first commit to this issue’s fork.

elimw’s picture

Status: Active » Needs review

I have added 'views' as a dependency in broken_link.info.yml and created a merge request.

elimw’s picture

StatusFileSize
new240 bytes

In the meantime, here's a patch that can be added added to composer.json files.

damyon’s picture

I have tested that patch on #5 and it fixes this problem for me.

grimreaper’s picture

Status: Needs review » Reviewed & tested by the community

Hello,

Patch 5 fixes the issue. Thanks!

manojapare’s picture

Changes merged. Thanks

manojapare’s picture

Status: Reviewed & tested by the community » Fixed
manojapare’s picture

manojapare’s picture

Status: Fixed » Closed (fixed)