Cannot update to Drupal 11 compatible version of Field Inheritance dependency

Created on 28 May 2025, about 1 month ago

Problem/Motivation

Drupal 11 requires an update to Field Inheritance 3.0.0-beta1 or higher. This module has constrained this dependency to ^2. In order to start testing Drupal 11 with this module, the constraint needs to be changed. Otherwise, Composer fails with this error:

% composer require 'drupal/field_inheritance:^3.0@beta'                                        
./composer.json has been updated
Running composer update drupal/field_inheritance
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/field_inheritance ^3.0@beta, found drupal/field_inheritance[3.0.0-beta1] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - Root composer.json requires drupal/recurring_events 3.0.x-dev@dev -> satisfiable by drupal/recurring_events[3.0.x-dev (alias of dev-3.0.x)].
    - drupal/recurring_events dev-3.0.x requires drupal/field_inheritance ^2 -> found drupal/field_inheritance[2.0.0-beta1, ..., 2.0.0] but it conflicts with your root composer.json require (^3.0@beta).
    - drupal/recurring_events 3.0.x-dev is an alias of drupal/recurring_events dev-3.0.x and thus requires it to be installed too.

Steps to reproduce

Install the 3.0.x-dev version of this module.
Install Field Inheritance 3.0.0-beta1.

Proposed resolution

Update composer.json to also allow ^3.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Recurring Events (Main module)

Created by

πŸ‡ΊπŸ‡ΈUnited States byrond

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

Comments & Activities

  • Issue created by @byrond
  • @byrond opened merge request.
  • πŸ‡ΊπŸ‡ΈUnited States byrond

    It is extremely difficult to test this, because Composer will not use the patched version in the MR when determining whether dependencies have been met. (It will still say 2.x is required and won't allow 3.x.) Is it safe to merge this change into dev now?

  • πŸ‡ΊπŸ‡ΈUnited States byrond

    We were actually able to test this more easily than expected by adding the following to composer.json:

            {
                "type": "vcs",
                "url": "https://git.drupalcode.org/issue/recurring_events-3527073.git"
            },
    

    Then, composer require 'drupal/recurring_events:dev-3527073-cannot-update-to'

    And, finally composer require 'drupal/field_inheritance:^3.0@beta'

    The pipeline is failing on the MR, but it's not due to this change.

  • πŸ‡ͺπŸ‡ΈSpain plopesc Valladolid

    Thank you for bringing this one.

    This change was already implemented as part of πŸ“Œ Make 3.x branch compatible with Field Inheritance 3.0.0 Active . It should be possible to use FI 3.0.x in the latest -dev version of this module.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024