If core provides a more recent version of a module use it instead of contrib

Created on 16 March 2016, about 9 years ago
Updated 11 May 2025, 1 day ago

Problem/Motivation

If core and contrib have the same module and both are compatible with the Drupal version, then the module system will always use the version in contrib. This will occur regardless of any version information in the module's info.yml file. Recently in Drupal 8 we've moved the Big Pipe module into core with the same name. This means that release instructions have to include a section saying you need to uninstall big_pipe and remove it from the codebase prior to upgrading to 8.1.0. This is very fragile.

Proposed resolution

If πŸ“Œ Experimental modules should have their own version numbers Closed: won't fix lands and we choose to use contrib version strings for experimental modules then it would be possible to choose the most recent version inseatd of blindly prefering contrib. This would result in more predictable release instructions and behaviour I think the user would expect.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

extension system

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024