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
Command icon 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

Harshita mehna created an issue. See original summary.

harshita mehna’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new335 bytes

Hello Maintainers,
I have provided a patch for this issue.
Please review it.

Thanks!

avpaderno’s picture

Title: The core: 8.x key must not be used here. » Remove "core: 8.x" from the .info.yml file
Category: Bug report » Task
Issue summary: View changes
Priority: Normal » Minor
Status: Reviewed & tested by the community » Needs work
-# core: 8.x
 package: Gallery Slider
 dependencies:
   - drupal:field

Actually, the content of the .info.yml file is the following.

name: Gallery slider
type: module
description: Gallery Slider jQuery plugin integration module.
# core: 8.x
package: Gallery Slider
dependencies:
  - drupal:field
  - drupal:image
core_version_requirement: ^8 || ^9

The correct change is either one or the other of the following:

  • # core: 8.x is changed to core: 8.x
  • core_version_requirement: ^8 || ^9 is changed to core_version_requirement: ^8.8 || ^9

harshita mehna’s picture

Status: Needs work » Needs review
StatusFileSize
new751 bytes

@apaderno, I have updated the patch 3368493-2.patch or an MR !3 please review.

haris khan jadoon changed the visibility of the branch 3368493-remove-core-8.x to hidden.

avpaderno changed the visibility of the branch 3368493-remove-core-8.x to active.

avpaderno’s picture

Status: Needs review » Needs work

Only one of the changes is correct: Either one or the other change is done, not both of them.

sayan_k_dutta’s picture

Assigned: Unassigned » sayan_k_dutta

Working on it.

sayan_k_dutta’s picture

Assigned: sayan_k_dutta » Unassigned
Status: Needs work » Needs review

Made the change. Please review.

avpaderno’s picture

Status: Needs review » Reviewed & tested by the community

The MR now correctly changes the Drupal core requirements.