Hello,
I am currently using version 1.x-dev
I wanted to update to version 1.0
running
composer update drupal/paypal_subscriptions --with-all-dependencies
only installs 1.0-alpha1
I tried
composer update drupal/paypal_subscriptions:1.0.0 --with-all-dependencies
I got the following report
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/paypal_subscriptions ^1.0.0, 1.0.0 -> satisfiable by drupal/paypal_subscriptions[1.0.0].
- drupal/paypal_subscriptions 1.0.0 requires drupal/commerce_payment-commerce_payment * -> could not be found in any version, there may be a typo in the package name.
Manually downloading the archive of version 1.0, I did not see any dependency requirement inside composer.json, but in the info.yml file, one can find
dependencies:
- commerce_payment:commerce_payment
- commerce_paypal:commerce_paypal
It seems to me that commerce_payment being a sub module of commerce core, the dependency should be instead written
dependencies:
- commerce:commerce_payment
I checked how the Commerce Stripe module did it, and indeed, they write it that way.
If I am right, since patches are applied after the module is fetched and checked by composer, until this fix it pushed onto a new official release, we won't be able to install version 1.0?
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3255602-5.patch | 692 bytes | vuil |
Issue fork paypal_subscriptions-3255602
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
nicolas bouteille commentedHello,
I see you've created a fork with updated composer.json removing the problematic dependency commerce_payment:commerce_payment
I'm not familiar with issue fork
Is it a version we can install with composer? or patch?
Or do I need to wait until it is converted to an official release?
Thank you
Comment #4
nicolas bouteille commentedOk I finally found how to install the forked version here
https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...
PS : I used HTTPS url instead of SSH to avoid the following error : git@git.drupal.org: Permission denied (publickey).
Comment #5
vuilComment #7
vuilComment #9
nicolas bouteille commentedthx for the fix !