Problem/Motivation

drupal/recommended-project uses "minimum-stability: stable"
https://github.com/drupal/recommended-project/blob/9.1.8/composer.json#L26

guardr_core cannot be composer required yet with this setting

Steps to reproduce

`composer create-project drupal/recommended-project guardr-compatibility`
`cd guardr-compatibility/`
`composer require drupal/guardr_core`

shows the following error:

Using version ^2.0 for drupal/guardr_core
./composer.json has been updated
Running composer update drupal/guardr_core
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/guardr_core 2.0.0 requires drupal/session_limit ^1.0 -> found drupal/session_limit[dev-1.x, 1.0.0-beta1, 1.0.0-beta2, 1.0.0-beta3, 1.x-dev (alias of dev-1.x)] but it does not match your minimum-stability.
    - drupal/guardr_core 2.0.1 requires drupal/session_limit ^2.0.0 -> found drupal/session_limit[dev-2.x, 2.0.0-beta1, 2.0.0-beta2, 2.x-dev (alias of dev-2.x)] but it does not match your minimum-stability.
    - Root composer.json requires drupal/guardr_core ^2.0 -> satisfiable by drupal/guardr_core[2.0.0, 2.0.1].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/guardr_core:*" to figure out if any version is installable, or "composer require drupal/guardr_core:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Proposed resolution

https://www.drupal.org/project/session_limit/releases/2.0.0-beta2 suggests

composer require 'drupal/session_limit:^2.0@beta'

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

joestewart created an issue. See original summary.

joestewart’s picture

Status: Active » Needs review
philosurfer’s picture

Status: Needs review » Reviewed & tested by the community

It seems the module maintainers have not touched this since last year to get a 2.x release, as there are 5 RTBCs on the queue for session_limit.

I tested patch and it now successfully installs guardr_core

  • shrop committed 275612c on 2.x authored by joestewart
    Issue #3283890: Ensure Compatibility with "minimum-stability: stable"
    
shrop’s picture

Status: Reviewed & tested by the community » Fixed
shrop’s picture

Thanks Joe and philosurfer!

Status: Fixed » Closed (fixed)

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