Problem/Motivation

Adding both core and core_version_requirement with anything other than core_version_requirement: ^8 || ^9 will result in an exception. This is not valid because the core: key would include versions that do not recognize the core_version_requirement: key.

Steps to reproduce

For example, a theme that is compatible with Drupal 8 versions after Drupal 8.8.0 and also Drupal 9 will need an info.yml file like this:

name: My Module
type: module
core_version_requirement: ^8 || ^9 || ^10

CommentFileSizeAuthor
#2 remove-core8x-3370006-2.patch329 bytesharshita mehna

Comments

Harshita mehna created an issue. See original summary.

harshita mehna’s picture

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

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!

akshay kashyap’s picture

@Harshita mehna

Thanks for the Work.

I have reviewed and tested the #2 patch it looks good. Removing core: 8.x and adding core_version_requirement: ^8 || ^9 || ^10 into infol.yml file. The module is compatible is Drupal 8,9,10.

RTBC++

keshavv’s picture

Status: Reviewed & tested by the community » Fixed

keshavv’s picture

Status: Fixed » Closed (fixed)