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.**
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3243613-d9_compat.patch | 406 bytes | z3cka |
Issue fork computed_breadcrumbs-3243613
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
Comment #2
z3cka commentedHere's the patch.
Comment #4
leon kessler commentedLooks good to me, this can be merged.
Comment #5
leon kessler commentedI'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.
Comment #7
eli-tMoving to Fixed as merged and new release issued last year.