Requirement conflict when upgrading Group module to 2.0beta3

Created on 1 November 2022, about 2 years ago
Updated 20 June 2024, 7 months ago

Problem/Motivation

When I try to upgrade Group module to 2.0beta3 I get a composer conflict with Domain Group

Steps to reproduce

Run command:
composer require 'drupal/group:^2.0@beta'

Receive the following notice:

Problem 1
- Root composer.json requires drupal/group ^2.0@beta, found drupal/group[2.0.0-beta1, 2.0.0-beta2, 2.0.0-beta3] but these were not loaded, likely because it conflicts with another require.
Problem 2
- drupal/domain_group is locked to version 2.0.1 and an update of this package was not requested.
- drupal/domain_group 2.0.1 requires drupal/group ~1.0 -> found drupal/group[1.0.0-beta1, ..., 1.5.0] but it conflicts with your root composer.json require (^2.0@beta).

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States adrianm6254

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada gwvoigt London, ON πŸ‡¨πŸ‡¦

    Same here, looking to upgrade a website to D10, so group will have to be upgraded to 2.0. Runnin into the same conflict with composer

  • πŸ‡³πŸ‡±Netherlands ekes

    2.x supports Group module 1.x. There is a 3.x branch that supports Group 3.x. It would be possible, if someone has the time, to work with the 3.x branch to make a version that supports 2.x (it should largely be a search and replace operation), but at the moment there is no branch of this module that works with Group 2.x.

  • πŸ‡¨πŸ‡¦Canada gwvoigt London, ON πŸ‡¨πŸ‡¦
  • First commit to issue fork.
  • @bbombachini opened merge request.
  • πŸ‡ΊπŸ‡ΈUnited States kerasai

    Just noting what we've done to make this work:

    • Updated Domain to D10 compatible version 2.x
    • We already have an installation of Group v1.x, so we're forced to update to 2.x.
    • Pulled in the not-yet-published D10/Groups 3 compatible branch for Domain Group
    • Aliased Group v2.2.1 as 3.0.0 in order to meet Domain Group's constraint

    composer require 'drupal/group:2.2.1 as 3.0.0' 'drupal/domain:^2@beta' 'drupal/domain_group:3.x-dev' -W

    After the most cursory of testing, things seem to work fine. I suspect we'll eventually need to include the patch from the MR in #7 πŸ› Requirement conflict when upgrading Group module to 2.0beta3 Active .

  • πŸ‡³πŸ‡±Netherlands ekes

    @kerasai Did you continue to use this? Can you confirm that the 3.x compatible version works with 2.x as well? I'll change the dependency if so.

    Aside: After all the work to make domain_group 3.x when group_sites came along we've decided it's worth switching to use it. Maintained by the Group module maintainer.

Production build 0.71.5 2024