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
Comments
Comment #3
harshita mehna commentedHello Maintainers,
I have provided an MR !4 to fix this issue.
To get more information visit https://www.drupal.org/node/3070687
Please review it.
Thanks!
Comment #4
priya_degwekar commentedHi @Harshita mehna, I have reviewed and tested #MR4.
It is removing the core key cleanly.
Comment #5
priya_degwekar commentedAttaching screenshots for reference.
Can be move to RTBC.
Comment #6
priya_degwekar commentedComment #7
avpadernoComment #10
harshita mehna commented@apaderno,
So What I understood here is that the core_version_requirement key is compatible with Drupal 8.8 and its above versions.
But If we want to get compatibility with all three versions 8,9 and 10 then we need to add
core: 8.x with core_version_requirement: ^8.8 || ^9 || ^10
Can you please let me know that Am I correct here or not?
Please share your thoughts and review again.
Apart from these thanks for showing me the correct way.
Thanks.
Comment #11
avpadernoSee the update issue summary.
Comment #12
avpadernoThe .info.yml file contains the following lines.
The line containing
core: 8.xand the line containingdrupal:system (>=8.7.0)must be removed. The line containingcore_version_requirement: ^8 || ^9 || ^10must be changed tocore_version_requirement: ^8.8 || ^9 || ^10.Comment #13
chaitanyadessai commentedPlease review patch.
Comment #14
avpadernoThe last patch is correct. 👍
Comment #15
harshita mehna commentedPlease review the commit e93dd434 and thanks for showing me the correct way.
Comment #16
avpadernoComment #17
solideogloria commentedNeeds Work to resolve this MR note, or it should be made clear that the patch should be merged instead of the MR.
Comment #19
megachrizAlright, I committed the patch from #13.