Problem/Motivation
This is a followup to #2890613: Erroneous Unresolved dependency with missing version in info file. The goal is to add a useful message when a module does not have a version property and other modules depend on it, potentially needing a specific version. A module will not have a version property if it was obtained via git or a dev version was obtained via composer.
Steps to reproduce
- composer require drupal/linkit:5.x-dev
- composer require drupal/linkit_media_library
- go to admin/modules
Proposed resolution
Display a precise & actionable error message.
Remaining tasks
Add useful error message
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3300838
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 #4
quietone commentedThis is the latest patch from the other issue, which needs a reroll. Adding tag.
Adding credit from the other issue as well.
Comment #5
devashish jangid commentedComment #6
ameymudras commentedComment #7
ameymudras commentedAdding a re rolled version of the above patch
Comment #8
pooja saraah commentedFixed Failed commands on #7
Attached patch and inderdiff file.
Comment #10
tvb commentedRerolled patch.
1 merge conflict in core/lib/Drupal/Core/Extension/ModuleDependencyMessageTrait.php
Comment #11
ameymudras commented@tvb I don't think that is required the patch #8 applies cleanly for Drupal 9.5.x.
Adding another patch to fix the test for #8.
Comment #15
nicxvan commentedThis needs a reroll and a conversion to an MR.
Comment #18
mrinalini9 commentedComment #19
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request. Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
Comment #20
nicxvan commentedCan you please address the code sniff and php stan failures?