Remove "core: 8.x" from the .info.yml file

Created on 21 June 2023, about 1 year ago
Updated 20 July 2023, 11 months ago

Adding both core and core_version_requirement with anything other than core_version_requirement: ^8 || ^9 will result in an exception.

For example, a module/theme that is compatible with Drupal 8 versions after Drupal 8.8.0 and also Drupal 9 will need to use the following line in its .info.yml file, without a line containing core.

core_version_requirement: ^8.8 || ^9

In the rare occasions the module/theme is also compatible with Drupal 10, its .info.yml file should use the following line.

core_version_requirement: ^8.8 || ^9 || ^10
📌 Task
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

🇮🇳India Harshita mehra

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

Comments & Activities

  • Issue created by @Harshita mehra
  • Status changed to RTBC about 1 year ago
  • 🇮🇳India Harshita mehra

    Hello Maintainers,
    I have provided a patch to fix this issue.
    To get more information visit https://www.drupal.org/node/3070687 →
    Please review it.

    Thanks!

  • 🇺🇸United States devkinetic

    This make sense, this module also needs a D10 version, so there will a 9 and 10 version released with the proper info metadata. I will also be dropping 8 from supported development. You can always use a previous version.

  • Status changed to Closed: works as designed 11 months ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
     package: Mail
    -core: 8.x
     core_version_requirement: ^8 || ^9

    Modules, themes. and profiles are allowed to use the following lines in their .info.yml file.

    core: 8.x
    core_version_requirement: ^8 || ^9
    

    That is described in New 'core_version_requirement' key in info.yml files for modules, themes and profiles → allows Composer semantic version constraints including specifying multiple major versions of core, which states:

    For example a module that is compatible with Drupal 8 and Drupal 9 can have a info.yml file like this

    name: My Module
    type: module
    core: 8.x
    core_version_requirement: ^8 || ^9
    

    There is no change that must be done in that .info.yml file.

Production build 0.69.0 2024