Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
https://git.drupalcode.org/project/examples/-/commit/00653398e4e96ba7427... already give an initial try for loose requirements for core_version_requirement
:
core_version_requirement: ^8.7 || ^9
BTW it is still not enough for Drupal 9.1.x which coming with following error message:
The 'core_version_requirement' can not be used to specify compatibility for a specific version before 8.7.7 in modules/contrib/examples/examples.info.
Steps to reproduce
drush -y site:install
Proposed resolution
Update all *.info.yml
as below:
core_version_requirement: ^8.7.7 || ^9
Comment | File | Size | Author |
---|---|---|---|
#2 | examples-3.x-core_version_requirement-3211322-2.patch | 18.02 KB | hswong3i |
Comments
Comment #2
hswong3i CreditAttribution: hswong3i commentedComment #3
AJV009Comment #5
eojthebraveIt's currently not possible to install any of the example's in this project in Drupal 9.2.x without the patch in #2. With that patch applied I can install the module's in this project.
The failing test appears to be because of #3051766: Deprecate and replace jQuery Joyride (for tours). It's in the tour_example and not directly related to this issue. But ... since 9.2.x has replaced the way tour tips are rendered the existing test which inspects the page's HTML fails.
Bumping to major. Though you could probably argue this is a critical issue since it seems the project is currently incompatible with latest release of Drupal core.
Comment #7
valthebald@eojthebrave: thanks for pointing out the source of the breaking tests. I've opened #3238712: Change tour_example following deprecation of jQuery joyride as a follow-up issue, marking this one as fixed
Comment #8
valthebald