contentacms / contenta_jsonapi

Contenta CMS, the decoupled Drupal
http://www.contentacms.org/
GNU General Public License v2.0
328 stars 104 forks source link

Proper way to update subrequests module? #404

Closed nessunluogo closed 4 months ago

nessunluogo commented 4 years ago

Since version 3.0 of Subrequests module has been released, all 2.x versions appears to be not supported (still 2.3 has been released the same day of 3.0). So now my updates status shows Not supported! Error.

Tried this composer require drupal/subrequests:^3.0 But I get

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

  Problem 1
    - Installation request for drupal/subrequests ^3.0 -> satisfiable by drupal/subrequests[3.x-dev, 3.0.0].
    - contentacms/contenta_jsonapi dev-8.x-3.x requires drupal/subrequests ^2.0 -> satisfiable by drupal/subrequests[2.x-dev].
    - contentacms/contenta_jsonapi dev-8.x-3.x requires drupal/subrequests ^2.0 -> satisfiable by drupal/subrequests[2.x-dev].
    - contentacms/contenta_jsonapi dev-8.x-3.x requires drupal/subrequests ^2.0 -> satisfiable by drupal/subrequests[2.x-dev].
    - Conclusion: don't install drupal/subrequests 2.x-dev
    - Installation request for contentacms/contenta_jsonapi dev-8.x-3.x -> satisfiable by contentacms/contenta_jsonapi[dev-8.x-3.x].

Installation failed, reverting ./composer.json to its original content.

Editing Contenta's own composer.json changing required subrequests version from ^2.0 to ^3.0 won't make effect, somehow composer gets original dependency to ^2.0.

Any help?

balmacefa commented 4 years ago

Edit your compose.json:

  "require": {
    "drupal/subrequests":  "2.0 as 3.0"
  },

clear the cache composer clearcache

deleting the composer.lock

Run composer install