Allow Drupal core developers to download contrib module in the next version

Created on 13 November 2023, over 1 year ago

Problem/Motivation

Before a new Drupal core version is released, many modules are prohibited from getting installed, even though they might work, or mostly work. This can be annoying during Drupal core development, since popular modules such as Devel and Admin Toolbar cannot be downloaded or installed in Drupal 11, even though they might largely work in Drupal 11.

Steps to reproduce

Do Drupal core development, and see that you have to jump through hoops to install a contrib module:

... composer install the module in 10.2.x, install the module through the Drupal modules page, revert git changes, and finally change back to 11.x or the fork branch.

From https://www.drupal.org/project/documentation/issues/3398293#comment-1531... 🌱 Consolidate local development environment documentation to recommend DDEV Active

Proposed resolution

Allow Drupal core developers to disable version check under "Development", to allow Drupal 10 module to be downloaded and installed in Drupal 11, of course with ample warnings.

Just like theme development got a turnkey solution for disabling caching with Twig debugging / caching settings added to administrative user interface β†’ , it would be great with an "Ignore Drupal version limitations (Danger! Warning!)" checkbox under Development, to allow downloading and installing for example Admin Toolbar or Devel for Drupal 10 in Drupal 11, without jumping through any other hoops.

Checking this box should override both composer.json as well as *.info.yml limitations.

Adding the Lenient Composer Endpoint to Drupal core, with a wildcard for all Composer projects, can take care of Composer, and the *.info.yml limitation can be taken care of in Drupal core.

Since the Drupal 10 and 11 code base will be quite similar, Devel and Admin Toolbar probably works 99%, see πŸ“Œ Add Drupal 11 support Needs review .

Remaining tasks

Add the two feature below, and activate them if "Ignore Drupal version limitations" is checked under "Development":

  • Add Drupal's Lenient Composer Endpoint β†’ to Drupal core, and set it to "wildcard" Composer limitations on any Contrib module
  • Update Drupal core to allow disabling of requirement checks in *.info.yml

User interface changes

TBD

API changes

TBD

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
ComposerΒ  β†’

Last updated 6 days ago

No maintainer
Created by

πŸ‡©πŸ‡°Denmark ressa Copenhagen

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

Comments & Activities

Production build 0.71.5 2024