Composer won't resolve beyond Open Social version 12.0.0-alpha2 when using composer require

Created on 16 December 2023, about 1 year ago
Updated 17 January 2024, 11 months ago

Problem/Motivation

I'm having an issue where Open Social is not updating the lastest stable. It only updates to version 12.0.0-alpha2 and from there no updates.
composer version = 2.5.5
php version 8.1.26

Steps to reproduce

Run

composer require goalgorilla/open_social ~12.0.0 --with-all-dependencies -vvv

This finishes with no errors

If i try to runcomposer require goalgorilla/open_social 12.0.0 --with-all-dependencies -vvv. i get this

Problem 1
- Root composer.json requires goalgorilla/open_social 12.0.0 -> satisfiable by goalgorilla/open_social[12.0.0].
- goalgorilla/open_social 12.0.0 requires drupal/core ~10.0.0 -> found drupal/core[10.0.0-alpha1, 10.0.0-alpha2, 10.0.0-alpha3, 10.0.0-alpha4, 10.0.0-alpha5, 10.0.0-alpha6, 10.0.0-alpha7, 10.0.0-beta1, 10.0.0-beta2, 10.0.0-rc1, 10.0.0-rc2, 10.0.0-rc3, 10.0.0, 10.0.1, 10.0.2, 10.0.3, 10.0.4, 10.0.5, 10.0.6, 10.0.7, 10.0.8, 10.0.9, 10.0.10, 10.0.11, 10.0.x-dev] but these were not loaded, likely because it conflicts with another require.

Am i missing something here? Normally if there are conflicts it shows you what the conflicts are. Is there something i missed or some form of updated documentation on updating to the new stable release that i missed?

💬 Support request
Status

Fixed

Version

12.0

Component

Code (back-end)

Created by

🇦🇺Australia taonac

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

Comments & Activities

  • Issue created by @taonac
  • First commit to issue fork.
  • Status changed to Needs review about 1 year ago
  • 🇮🇳India viren18febS

    I have update the json file & added patch, please review.

  • Hey, can I ask how did you fix this? I'm running into the same problem but I can't get it to work with your patch.
    Thanks!

  • @viren18febS It seems that updating with composer update just works (save for issue 3400861 so I opted for dev for now), but using composer require goalgorilla/open_social 12.0.0 --with-all-dependencies (or variants of this) gives the error mentioned.
    When trying to fix all the dependencies manually (with why and why-not, which is always a deep dive tbh) I also can't find which one is conflicting.
    Maybe just using composer update works for you as well.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    composer require is not used to update. composer update is used to update the used Composer packages to their latest versions.

  • Status changed to Fixed 12 months ago
  • 🇳🇱Netherlands kingdutch

    Although composer require can be used for updating, the way Composer performs dependency resolution internally is slightly different than when you manually update your composer.json file and then run composer update. In the case of composer require it can happen that Composer erroneously excludes valid packages for an update leading to the mentioned error message.

    The solution is to manually update your composer.json file and run composer update which ensures Composer doesn't exclude valid versions of packages prematurely.

    We've updated our update documentation today which explains this flow: https://www.drupal.org/docs/drupal-distributions/open-social/updating

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

Production build 0.71.5 2024