Prefer composer.json drupal/core requierment over module.info file for supproted versions field

Created on 3 December 2024, 18 days ago

Problem/Motivation

Currently the project page for downloads prefers the content of the info.yml over the composer.json.

Core is deprecating support for tarball installs thus the composer data is more important going forward (it doesn't matter if module could be installed by core if composer.json will not allow download).
Now that we have a GitLab Ci composer.json's are essentially required for all but the simplest of modules compared to when the facade was deployed on very few (or none) modules had a composer.json.

As we look towards Gitlab issues the need for Dev releases to populate the version field is diminished and Git Checkouts are likely to become more common pushing the preference towards the composer.json to be the authoritative endpoint, possibly eventually having modules change info.yml to >=11 to avoid maintaining the value in multiple locations.

Steps to reproduce

https://www.drupal.org/project/tfa/releases/2.0.0-alpha3 β†’ vs https://git.drupalcode.org/project/tfa/-/blob/2.0.0-alpha3/composer.json

Proposed resolution

Use the composer.json value for drupal/core if provided, otherwise use module.info file.

Remaining tasks

User interface changes

UI will now show supported versions based on composer.json if present instead of info.yml.

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

3.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States cmlara

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024