Problem/Motivation

When downloading this module with composer require -W drupal/computed_breadcrumbs in a Drupal 9.2.6 project I get the following error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/computed_breadcrumbs[1.0.0-beta1, ..., 1.0.0-beta7] require drupal/core ^8.8 || 9 -> found drupal/core[8.8.0-alpha1, ..., 8.9.x-dev, 9.0.0] but it conflicts with your root composer.json require (^9.1).
    - Root composer.json requires drupal/computed_breadcrumbs ^1.0@beta -> satisfiable by drupal/computed_breadcrumbs[1.0.0-beta1, ..., 1.0.0-beta7].

Steps to reproduce

Require module in a Drupal 9.2.6 project: composer require -W drupal/computed_breadcrumbs

Proposed resolution

Change core_version_requirement in computed_breadcrumbs.info.yml from:

core_version_requirement: ^8.8 || 9

to:

core_version_requirement: ^8.8 || ^9

**Patch coming shortly.**

CommentFileSizeAuthor
#2 3243613-d9_compat.patch406 bytesz3cka
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

z3cka created an issue. See original summary.

z3cka’s picture

StatusFileSize
new406 bytes

Here's the patch.

leon kessler’s picture

Status: Active » Reviewed & tested by the community

Looks good to me, this can be merged.

leon kessler’s picture

I've added a composer.json file to the MR. This makes it easier to use the gitlab branch as a repository in your composer.json file.

I also think it's general good practise for Drupal modules to define their own composer.json files.

  • blazey committed c9cd202 on 1.0.x authored by z3cka
    Issue #3243613: Problem requiring module via composer with Drupal 9.2.6
    
eli-t’s picture

Status: Reviewed & tested by the community » Fixed

Moving to Fixed as merged and new release issued last year.

Status: Fixed » Closed (fixed)

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