Can not install on Webformautosave Drupal 10 due to Your requirements could not be resolved

Created on 4 May 2023, about 1 year ago
Updated 6 May 2023, about 1 year ago

Problem/Motivation

Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update drupal/webformautosave
No patches supplied.
> DrupalComposerManaged\ComposerScripts::preUpdate
Using version 'dev-main' for path repositories.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/webformautosave[2.0.0, ..., 2.0.1] require drupal/webform_submission_log * -> satisfiable by drupal/webform_submission_log[5.0.0, ..., 5.31.0, 6.0.0, ..., 6.1.4].
    - drupal/webform_submission_log[5.9.0, ..., 5.13.0] require drupal/core ^8.7.7 || ^9 -> found drupal/core[8.7.7, ..., 8.9.20, 9.0.0, ..., 9.5.9] but the package is fixed to 10.0.8 (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.
    - drupal/webform_submission_log[5.0.0, ..., 5.15.0] require drupal/core ^8 -> found drupal/core[8.0.0, ..., 8.9.20] but the package is fixed to 10.0.8 (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.
    - drupal/webform_submission_log[5.16.0, ..., 5.31.0] require drupal/core ^8.8 -> found drupal/core[8.8.0, ..., 8.9.20] but the package is fixed to 10.0.8 (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.
    - drupal/webform_submission_log[6.0.0, ..., 6.1.4] require drupal/core ^8.8 || ^9 -> found drupal/core[8.8.0, ..., 8.9.20, 9.0.0, ..., 9.5.9] but the package is fixed to 10.0.8 (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/webformautosave ^2.0 -> satisfiable by drupal/webformautosave[2.0.0, 2.0.1].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
composer [require drupal/webformautosave:^2.0] failed, composer command failed: exit status 2. stderr=

Steps to reproduce

composer require 'drupal/webformautosave:^2.0'

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dangur

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

Comments & Activities

  • Issue created by @dangur
  • πŸ‡ΊπŸ‡ΈUnited States rymcveigh

    I have been able to install this module on a vanilla Drupal 10 site and the primary automated tests for the module run on Drupal 10. Based on the output from composer you shared it looks like the version of the webform_submission_log you are using is locked to a specific version. That module is supplied by the webform module. What version of webform do you have installed? Are you using the latest version?

  • πŸ‡ΊπŸ‡ΈUnited States dangur

    Chalk another one up to silly composer tricks. I noticed the same non-issue when I went to do a clean install using DrupalPod. I was using composer require 'drupal/webform:^6.2@beta' which was giving me webform(_submission_log) 6.2.0-beta5, but for some reason composer thought I had webform_submission_log[5.0.0, ..., 5.31.0, 6.0.0, ..., 6.1.4]. I rectified the situation by explicitly specifying the version of webform_submission_log:
    composer require 'drupal/webform_submission_log:^6.2@beta' --with-all-dependencies
    which allowed me to successfully get webform autosave with
    poser require 'drupal/webformautosave:^2.0' --with-all-dependencies
    Thanks!

  • Status changed to Closed: cannot reproduce about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States dangur
  • πŸ‡ΊπŸ‡ΈUnited States greggles Denver, Colorado, USA

    Thanks for following up!

    Updating the title to help people find this error / resolution.

    Sounds like these are the 2 needed commands with the state of the modules.

    composer require 'drupal/webform_submission_log:^6.2@beta' --with-all-dependencies
    composer require 'drupal/webformautosave:^2.0' --with-all-dependencies

    I guess when webform_submission_log is out of beta this will no longer be an issue.

  • πŸ‡ΊπŸ‡ΈUnited States dangur

    Sounds good. I believe this condition only happens when the webform module is installed first, but that is an untested hypothesis.

Production build 0.69.0 2024