Check for "core" key in info.yml files

Created on 8 June 2023, over 1 year ago
Updated 22 February 2024, 10 months ago

Problem/Motivation

Scans catch instances of wrong values in core_version_requirement keys, but they miss instances of core: 8.x.

For Drupal 10 compatibility, core: 8.x lines need to be removed from info.yml files โ†’ .

Steps to reproduce

(Assumption: You have Upgrade Status 4.x installed on a Drupal 9.5.x site.)

  1. Install a module with core: 8.x in its info.yml file -- for example, Views Reference Field (viewsreference) version 1.8:

    composer require drupal/viewsreference:1.8.0
    
  2. Run the upgrade status report/scans -- specifically, scan viewsreference.
  3. You'll see 5 problems reported, including the normal core_version_requirement issue ("Value of core_version_requirement: ^8 || ^9 is not compatible with the next major version of Drupal core"), but no mention of the problematic presence of core: 8.x.

Proposed resolution

Make upgrade status catch this issue :)

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Needs review

Version

4.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States alison

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024