Problem/Motivation

With the last release of Webform 23 Jun (compatible with D9), I tried to update it via composer but this module doesn't allow because it has the dependency still set to webform 5.0.

The webform 6 comes with compatibility for Drupal 9, so this issue should be addressed as soon as possible.

Steps to reproduce

Having installed webform 5.0 and webform_deter (last version), try to update webform to the last version (6.0.4).

You will see the following error:

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

  Problem 1
    - Installation request for drupal/webform_deter (locked at 1.0.0-beta2, required as ^1.0@beta) -> satisfiable by drupal/webform_deter[1.0.0-beta2].
    - Can only install one of: drupal/webform[6.x-dev, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha1, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha2, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha3, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha4, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha5, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha6, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha7, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha8, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha9, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha10, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha11, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha12, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha13, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha14, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha15, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha16, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha17, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha18, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha19, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha20, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-alpha21, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-beta1, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-beta2, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0-beta3, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.0, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.1, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.2, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.3, 5.x-dev].
    - Can only install one of: drupal/webform[6.0.4, 5.x-dev].
    - Conclusion: install drupal/webform 5.x-dev
    - Installation request for drupal/webform ^6.0 -> satisfiable by drupal/webform[6.x-dev, 6.0.0-alpha1, 6.0.0-alpha2, 6.0.0-alpha3, 6.0.0-alpha4, 6.0.0-alpha5, 6.0.0-alpha6, 6.0.0-alpha7, 6.0.0-alpha8, 6.0.0-alpha9, 6.0.0-alpha10, 6.0.0-alpha11, 6.0.0-alpha12, 6.0.0-alpha13, 6.0.0-alpha14, 6.0.0-alpha15, 6.0.0-alpha16, 6.0.0-alpha17, 6.0.0-alpha18, 6.0.0-alpha19, 6.0.0-alpha20, 6.0.0-alpha21, 6.0.0-beta1, 6.0.0-beta2, 6.0.0-beta3, 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4].

This is because in the composer.json file for this module still requires webform 5.0:

{
  "name": "drupal/webform_deter",
  "type": "drupal-module",
  "description": "Applies clientside validation checks to webform fields and warns the user when sensitive information may be contained in data being submitted.",
  "keywords": ["Drupal"],
  "license": "GPL-2.0+",
  "homepage": "https://www.drupal.org/project/webform_deter",
  "minimum-stability": "dev",
  "support": {
    "issues": "http://drupal.org/project/issues/webform_deter",
    "source": "http://cgit.drupalcode.org/webform_deter"
  },
  "require": {
    "drupal/webform": "~5.0"
  }
}

Proposed resolution

Update the composer.json file to allow the webform 6.0. To continue allowing 5.0 as well I'd propose to do this change:

"require": {
    "drupal/webform": ">=5.0"
  }

I'm leaving this solution in a patch file for review.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

CommentFileSizeAuthor
webform_deter-comp-webform_6.patch280 bytesafsch
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

alexis_saransig created an issue. See original summary.

marcoscano made their first commit to this issue’s fork.

marcoscano’s picture

Category: Support request » Task
Status: Active » Fixed

Fixed, thanks!

Status: Fixed » Closed (fixed)

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