According to Drupal standards, modules should include dependencies in the .info.yml file.
Dependencies should be namespaced in the format {project}:{module}, where {project} is the project name as it appears in the Drupal.org URL (e.g. drupal.org/project/views) and {module} is the module's machine name.
https://www.drupal.org/docs/8/creating-custom-modules/let-drupal-8-know-...

Patch to follow, thanks!

Comments

alonaoneill created an issue. See original summary.

alonaoneill’s picture

Assigned: alonaoneill » Unassigned
Status: Active » Needs review
StatusFileSize
new831 bytes
mlncn’s picture

Thanks alanooneill! This is a Features-produced module so to get this fix to stick, i think it may have to be fixed in Features: https://www.drupal.org/project/features/issues/2801365#comment-13203138

  • mlncn committed 0b80297e on 8.x-1.x
    [#3071148] feat: Dependency namespacing in .info.yml file
    
    Authored-by:...
mlncn’s picture

Status: Needs review » Fixed

Welll Features may never export namespaces correctly? But six years on we may as well do it correctly ourselves.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.