Can't install latest version of calendar module with composer

Created on 20 September 2023, 9 months ago
Updated 26 April 2024, 2 months ago

Problem/Motivation

Can't install Calendar module released 8 August 2023 with composer.

Steps to reproduce in Composer:

Tried:

composer require 'drupal/calendar:^1.0@beta'

Got:

./composer.json has been updated
Running composer update drupal/calendar
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/calendar 1.0@beta, found drupal/calendar[dev-1.x, dev-2.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x), 2.x-dev (alias of dev-2.x)] but it does not match the constraint.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Tried:

composer require 'drupal/calendar:^1.0-beta1'

Got:

./composer.json has been updated
Running composer update drupal/calendar
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/calendar 1.0-beta1 -> satisfiable by drupal/calendar[1.0.0-beta1].
- drupal/calendar 1.0.0-beta1 requires drupal/calendar_datetime * -> found drupal/calendar_datetime[dev-1.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x)] but it does not match your minimum-stability.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Tried:

composer require 'drupal/calendar:1.x-dev@dev'

Got:

Your requirements could not be resolved to an installable set of packages.

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

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

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡§πŸ‡·Brazil Claudia Sotto

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

Comments & Activities

  • Issue created by @Claudia Sotto
  • πŸ‡ΊπŸ‡ΈUnited States lhridley

    Additional information:

    Tried to install calendar with Drupal 10.1 using composer version 2.5.1 (php 8.1) as follows:

    composer require drupal/calendar:^1.0@BETA

    Got the following message:

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Root composer.json requires drupal/calendar ^1.0@BETA -> satisfiable by drupal/calendar[1.0.0-beta1].
        - drupal/calendar 1.0.0-beta1 requires drupal/calendar_datetime * -> found drupal/calendar_datetime[dev-1.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x)] but it does not match your minimum-stability.

    calendar_datetime is a submodule of calendar, and no separate project called drupal/calendar_datetime exists that I can locate. I dot not see an explicit dependency in the composer.json file for the project, the only place I can locate a dependency in the module code is in calendar.info.yml

    In any case, this prevents installing the module with composer.

  • πŸ‡¦πŸ‡ΉAustria drupalfan2

    I have the same problem.

  • πŸ‡ΊπŸ‡ΈUnited States Jay.Chen

    The command "composer require drupal/calendar:^1.0@beta" works for me if I changed the "minimum-stability" to "dev" instead of "stable" in the composer.json file.

    "minimum-stability": "dev",
    "prefer-stable": true,
    
  • πŸ‡ΊπŸ‡ΈUnited States Gorf

    10.1.6 and I wanted to confirm that I had the same issue here but simply altering my "minimum-stability" to be "dev" allows for the install.

  • πŸ‡§πŸ‡·Brazil Claudia Sotto

    "minimum-stability": "dev" worked for me. Thanks!

  • The error you're encountering is likely due to the fact that the minimum stability set in your Composer configuration is "stable". Since the module is still in development and a stable version hasn't been released yet, Composer is unable to resolve the dependencies properly.

    To quickly address this error, you can adjust the minimum stability setting in your Composer configuration to "dev". This change will allow Composer to install modules that are in the development stage.

Production build 0.69.0 2024