Problem/Motivation
Cannot install drupal/route_basic_auth:^1.0@alpha using composer.
The following error is outputted by composer:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/route_basic_auth[1.0.0-alpha1, ..., 1.0.0-alpha7] require drupal/core ^8.6 -> found drupal/core[8.6.0-alpha1, ..., 8.9.x-dev] but the package is fixed to 9.1.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires drupal/route_basic_auth ^1.0@alpha -> satisfiable by drupal/route_basic_auth[1.0.0-alpha1, ..., 1.0.0-alpha7].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Steps to reproduce
- Use Drupal Core 9 or higher
- Install with Composer: $ composer require 'drupal/route_basic_auth:^1.0@alpha'
Proposed resolution
Modify route_basic_auth's composer.json requirements to include Drupal 9
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | route_basic_auth-drupal_9_readiness_composer-3232585-2.patch | 293 bytes | tyler-paavola |
Issue fork route_basic_auth-3232585
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
tyler-paavola commentedComment #3
tyler-paavola commented@orlando.thoeny I am requesting changes from patch #2 be applied to the upstream package to modify route_basic_auth's composer file to allow Drupal 9.
Patch #2 cannot be applied to the project due to the limits of cweagan being able to apply patches to composer.json files. As a result, there is no way to install route_basic_auth in a Drupal 9 instance without forking the project.
Comment #6
milovan commentedThank you @Tyler-paavola for your patch! It is merged now.
Comment #7
milovan commentedComment #8
milovan commented