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

  1. Use Drupal Core 9 or higher
  2. 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

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

tyler-paavola created an issue. See original summary.

tyler-paavola’s picture

tyler-paavola’s picture

Assigned: tyler-paavola » Unassigned
Priority: Normal » Major

@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.

  • b4e6f23 committed on 8.x-1.x
    Issue #3232585: Drupal 9 readiness (composer)
    
milovan’s picture

Thank you @Tyler-paavola for your patch! It is merged now.

milovan’s picture

Status: Active » Fixed
milovan’s picture

Status: Fixed » Closed (fixed)