Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
https://github.com/drupal/core-utility/blob/8.3.x/composer.json#L10 and https://github.com/drupal/core-render/blob/8.3.x/composer.json#L9 has a circular dependency on each other.
They depend on each other because, for some reason, \Drupal\Component\Utility\SafeMarkup
ended up in there, which uses classes from \Drupal\Component\Render
Proposed resolution
In theory, core-utility shouldn't depend on core-render.
Remaining tasks
Discuss & verify.
User interface changes
None
API changes
core-utility won't depend on core-render
Data model changes
None
Comments
Comment #2
jibranComment #3
jibranComment #4
dawehnerUpdated the issue summary.
Comment #5
jibranComment #8
Mile23It's OK that they depend on each other because they'll both satisfy the other's dependency. :-)
The problem is that they inherit versions due to
replace
, so if you use them asreplace
in another context without a version number, they complain about their circular versioning, not their circular dependency.See #2876669-35: Fix dependency version requirement declarations in components
Comment #12
bradjones1I think it's safe to mark this as a duplicate of #2876669: Fix dependency version requirement declarations in components.