Cannot use the composer installation

Created on 26 January 2023, over 1 year ago
Updated 24 April 2024, 2 months ago

Hello:

Cannot use the coposer installation

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

Problem 1
- Root composer.json requires drupal/radioactivity ^4.0 -> satisfiable by drupal/radioactivity[4.0.0, 4.0.1, 4.0.2, 4.0.3].
- drupal/radioactivity[4.0.0, ..., 4.0.3] require drupal/core ^9 -> found drupal/core[9.0.0, ..., 9.5.2] but the package is fixed to 10.0.2 (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.

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.

๐Ÿ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @msn5158
  • Status changed to Postponed: needs info over 1 year ago
  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands Sutharsan

    @msn5158, can you describe the situation in which this occurs? Preferably in the form of steps to reproduce?

  • I capture a picture๏ผš

  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia arisen Goa

    Tried composer installation of the module on drupal 10.0.0. It works.
    But looks like for me it doesn't install the stable release of the module instead it installs from the dev branch 4.0.x.
    Check the attached screenshot. Confirmed the same in the composer.lock.

    Probably adding "prefer-stable": true in the root composer should solve the above issue.

  • Status changed to RTBC 9 months ago
  • ๐Ÿ‡ฑ๐Ÿ‡ปLatvia biguzis

    This is because 4.0.3 version doesn't allow to use D10 from composer.json side. Dev version contains "^9 || ^10" and it allowed it to install for @arisen.
    Fix would be to create a new release for proper D10 support. Till then - composer require drupal/radioactivity:^4.0.0@dev

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States robphillips

    For those who need this now without installing a dev version. Use this patch along with drupal-lenient on version 4.0.3.

  • Status changed to Postponed: needs info 4 months ago
  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands Sutharsan

    Version 4.0.3 was released with core_version_requirement: ^9 || ^10. Is this issue still now resolved?

    Please mark this issue 'closed' when it is resolved.

  • Status changed to Active 3 months ago
  • ๐Ÿ‡ณ๐Ÿ‡ฎNicaragua dinarcon

    This is still an issue. Version 4.0.3 contains core_version_requirement: ^9 || ^10 in the radioactivity.info.yml file, but the issue reported here is not being able to add the module via Composer. That is because 4.0.3 does not declare Drupal 10 compatibility in the composer.json file. See https://git.drupalcode.org/project/radioactivity/-/blob/4.0.3/composer.j...

    This has already been fixed in https://git.drupalcode.org/project/radioactivity/-/commit/5b0200bc08ca66..., but that commit was not part of the 4.0.3 release.

    Doing what is described in #6 or #7 allows the module to be installed. Tagging a new release would be very much appreciated.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States ccjjmartin Austin, TX

    I can confirm that the only thing needed here is a new tagged release as the latest dev branch has the necessary required change. The release as of 4.0.3 did not have the required change in the composer.json file, notice the lack of or Drupal 10: https://git.drupalcode.org/project/radioactivity/-/blob/fa9651f23d6a5ee1...

Production build 0.69.0 2024