Problem/Motivation
composer require drupal/jsonapi_extras
Using version ^3.5 for drupal/jsonapi_extras
./composer.json has been updated
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove drupal/core 8.7.0-beta1
- Conclusion: don't install drupal/core 8.7.0-beta1
- drupal/jsonapi_extras 3.x-dev requires drupal/jsonapi ^2.1 -> satisfiable by drupal/jsonapi[2.x-dev, 2.4.0, 2.3.0, 2.2.0, 2.1.0].
- drupal/jsonapi_extras 3.5.0 requires drupal/jsonapi ^2.1 -> satisfiable by drupal/jsonapi[2.x-dev, 2.4.0, 2.3.0, 2.2.0, 2.1.0].
- drupal/jsonapi_extras 3.x-dev requires drupal/jsonapi ^2.1 -> satisfiable by drupal/jsonapi[2.x-dev, 2.4.0, 2.3.0, 2.2.0, 2.1.0].
- drupal/jsonapi_extras 3.5.0 requires drupal/jsonapi ^2.1 -> satisfiable by drupal/jsonapi[2.x-dev, 2.4.0, 2.3.0, 2.2.0, 2.1.0].
- don't install drupal/jsonapi 2.x-dev|don't install drupal/core 8.7.0-beta1
- don't install drupal/jsonapi 2.4.0|don't install drupal/core 8.7.0-beta1
- don't install drupal/jsonapi 2.3.0|don't install drupal/core 8.7.0-beta1
- don't install drupal/jsonapi 2.2.0|don't install drupal/core 8.7.0-beta1
- don't install drupal/jsonapi 2.1.0|don't install drupal/core 8.7.0-beta1
- don't install drupal/jsonapi 2.x-dev|don't install drupal/core 8.7.0-beta1
- don't install drupal/jsonapi 2.4.0|don't install drupal/core 8.7.0-beta1
- don't install drupal/jsonapi 2.3.0|don't install drupal/core 8.7.0-beta1
- don't install drupal/jsonapi 2.2.0|don't install drupal/core 8.7.0-beta1
- don't install drupal/jsonapi 2.1.0|don't install drupal/core 8.7.0-beta1
- Installation request for drupal/core ^8.7@beta -> satisfiable by drupal/core[8.7.0-beta1].
- Installation request for drupal/jsonapi_extras ^3.5 -> satisfiable by drupal/jsonapi_extras[3.x-dev, 3.5.0].
Installation failed, reverting ./composer.json to its original content.Also when executing tests in the issue queue we want to ensure that Drupal CI uses drupal core's JSON:API project for D8.7 and D8.8, but not for D8.6.
Proposed resolution
Alter the module dependency declarations to see if this is possible.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3043975--alter-dependencies--2.patch | 590 bytes | e0ipso |
Comments
Comment #2
e0ipsoFirst attempt.
Comment #3
jibran@e0ipso I'd suggest committing this patch to
3043975-devbranch so that testbot can pick it up run this and show results in the sidebar then we can review/commit it.Comment #4
jibranThis critical because I can't use this module with core jsonapi module.
Comment #5
e0ipsoWoah! I didn't know that @jibran. 👏🏽👏🏽👏🏽👏🏽
Comment #6
e0ipsoIt seems that this failed. Any ideas @jibran?
Comment #7
jibranSeems like drupal composer point is not picking up the branch.
Comment #8
jibranLet me try this branch locally.
Comment #9
jibranAh! the branch name shouldn't start from
dev-*or ends with*-dev. My bad for suggesting that name. It is confusing the composer. Let's rename it. Naming convention can be found at https://www.drupal.org/node/2823818 and if you are not aware of the feature then there is more details here https://www.drupal.org/node/2823818.Comment #10
jibranComment #11
jibranIf I use
composer require drupal/jsonapi_extras:3043975-dev-devthen it works and installs without an issue.Comment #12
jibranComment #14
e0ipsoComment #15
naveenvalechaA minor tweak need to addressed drupal:jsonapi
Comment #16
e0ipso@naveenvalecha that was intentional as we want this to work with both contrib and core.
Comment #17
jibranThe good news is I can run
composer require drupal/jsonapi_extras dev-3.xon bothdrupal/core ^8.6anddrupal/core ^8.7@beta. Site is working without any issues.This is how Drupal packagist is interpreting the info file.
Comment #18
naveenvalecha#16
Cool. I didn't know about how the drupal data is exposed to drupal packages.json
Comment #19
wim leersGood catch!