Problem/Motivation
The dependency declaration in `country_path.info.yml` causes an unresolved dependency error when using Domain 2.x:
dependencies:
- domain:domain (>=8.x-1.0-beta7)
While `composer.json` correctly supports both Domain 1.x and 2.x:
"drupal/domain": "^1.0.0-beta7 || ^2"
When Domain 2.x (e.g., 2.0.0-beta6) is installed, Drupal's dependency checker reports an unresolved dependency error because the constraint `>=8.x-1.0-beta7` does not recognize 2.x versions as satisfying the requirement, even though they are functionally compatible and allowed by composer.json.
Error message:
Unresolved dependency
Domain (Version >=8.x-1.0-beta7 required)
Country Path requires this module and version. Currently version of Domain is being used.
Steps to reproduce
- Install Drupal 10
- Install Domain module version 2.0.0-beta6 (or any 2.x version) via Composer
- Install Country Path module version 1.9.0 via Composer
- Enable the Country Path module
- Navigate to the Status Report page (/admin/reports/status)
- Observe the unresolved dependency error message
Proposed resolution
Remove the version constraint from `country_path.info.yml` to align with `composer.json`:
dependencies:
- domain:domain
This allows Composer to manage version requirements while eliminating the dependency mismatch error on the Status Report page.
Remaining tasks
- Review and apply the patch
- Test with both Domain 1.x and 2.x versions
- Commit the fix
- Create a new release
User interface changes
The unresolved dependency error on the Status Report page will no longer appear when using Domain 2.x with Country Path.
API changes
None.
Data model changes
None.
Issue fork country_path-3550658
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
Comment #5
idebr commentedThanks, composer.json is sufficient to manage the domain package version
Comment #6
d.fisher commentedLooks good to me. +1 RTBC.
Also sort of related and probably sensible to release at the same time:
https://www.drupal.org/project/country_path/issues/3548753
Comment #8
d.fisher commented