Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Currently the module is not installable with composer. Composer returns the following message
Problem 1
- drupal/subrequests 2.0.0-beta1 requires skyscanner/jsonpath dev-master -> no matching package found.
- drupal/subrequests 2.0.0-beta2 requires skyscanner/jsonpath dev-master -> no matching package found.
- drupal/subrequests 2.0.0-beta3 requires skyscanner/jsonpath dev-master -> no matching package found.
- drupal/subrequests 2.0.0-rc1 requires skyscanner/jsonpath dev-master -> no matching package found.
- drupal/subrequests 2.x-dev requires skyscanner/jsonpath dev-master -> no matching package found.
It also makes the contentacms project setup failing at the moment.
When I looked into the skyscanner/jsonpath library on packagist, I saw that the dev-master
release is not published anymore.
Proposed resolution
It might be the responsibility of the maintainer of the library to promote the dev-master again, but maybe should make use of the tagged release, since the library has a stable 1.0 tag now.
Comment | File | Size | Author |
---|---|---|---|
#2 | subrequests-use_json_path_stable_release-2948057-2.patch | 398 bytes | szeidler |
Comments
Comment #2
szeidler CreditAttribution: szeidler at Ramsalt Lab commentedHere's a patch for the version constraints.
Comment #4
e0ipsoThanks for the patch!
Comment #5
murat_halici CreditAttribution: murat_halici commentedI'm also running into contenta install failures due to this issue. Just wondering how you were able to apply the patch and get the install to work. Thanks!
Comment #6
szeidler CreditAttribution: szeidler at Ramsalt Lab commentedUnfortunately it's not possible to patch composer.json definitions with composer-patches. What I did as a workaround in an existing contentacms installation, was to add a new dependency in the root composer.json "require" section, like this.
It's an inline alias, that will load the release 1.0 when `dev-master` (which is missing) is required for the jsonpath library.
Comment #8
e0ipsoI was unable to push this for a while. It should be available in the latest release.