Composer install is failling

Created on 17 May 2024, about 1 month ago
Updated 1 June 2024, 28 days ago

Problem/Motivation

composer require 'drupal/grant:1.x-dev@dev'
./composer.json has been updated
Running composer update drupal/grant
Gathering patches for root package.
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/grant dev-1.x requires drupal/grant_base * -> found drupal/grant_base[dev-1.x, 1.x-dev (alias of dev-1.x)] but it does not match your minimum-stability.
    - drupal/grant 1.x-dev is an alias of drupal/grant dev-1.x and thus requires it to be installed too.
    - Root composer.json requires drupal/grant 1.x-dev@dev -> satisfiable by drupal/grant[1.x-dev (alias of dev-1.x)].

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

It seems that this is caused by the new strategy to add dependency to grant_base on grant.info.yml

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany C-Logemann Frankfurt/M, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @C-Logemann
  • πŸ‡©πŸ‡ͺGermany C-Logemann Frankfurt/M, Germany

    The tome module does also use submodules. The difference is that tome.info .yml is empty. But the composer result is a little bit strange where only the main project is marked as dev and composer seems to install version 1.12.0 (the current stable) :

     composer require 'drupal/tome:1.x-dev@dev'
    ./composer.json has been updated
    Running composer update drupal/tome
    Gathering patches for root package.
    > DrupalProject\composer\ScriptHandler::checkComposerVersion
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 4 installs, 0 updates, 0 removals
      - Locking drupal/tome (dev-1.x ec6aae3)
      - Locking drupal/tome_base (1.12.0)
      - Locking drupal/tome_static (1.12.0)
      - Locking drupal/tome_sync (1.12.0)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 4 installs, 0 updates, 0 removals
      - Syncing drupal/tome (dev-1.x ec6aae3) into cache
    Gathering patches for root package.
    Gathering patches for dependencies. This might take a minute.
      - Installing drupal/tome_base (1.12.0)
      - Installing drupal/tome (dev-1.x ec6aae3): Cloning ec6aae332f from cache
      - Installing drupal/tome_sync (1.12.0)
      - Installing drupal/tome_static (1.12.0)
  • Issue was unassigned.
  • Status changed to Fixed about 1 month ago
  • πŸ‡©πŸ‡ͺGermany C-Logemann Frankfurt/M, Germany

    I had over seen "minimum-stability" setting and was than confused about related issue on tome module which is still confusing.

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

Production build 0.69.0 2024