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?

CommentFileSizeAuthor
#5 3255602-5.patch692 bytesvuil
Command icon 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

Nicolas Bouteille created an issue. See original summary.

rbrownell made their first commit to this issue’s fork.

nicolas bouteille’s picture

Hello,
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

nicolas bouteille’s picture

Ok I finally found how to install the forked version here
https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...

"repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8",
            "exclude": [
                "drupal/paypal_subscriptions"
            ]
        },
        {
            "type": "git",
            "url": "https://git.drupalcode.org/issue/paypal_subscriptions-3255602.git"
        }
    ],

"require": [
  "drupal/paypal_subscriptions": "dev-3255602-cannot-update-to#c2cc9325210646df562da327f735ed25e97b9951",
]

PS : I used HTTPS url instead of SSH to avoid the following error : git@git.drupal.org: Permission denied (publickey).

vuil’s picture

Version: 8.x-1.0 » 8.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new692 bytes

  • vuil committed c6e4820 on 8.x-1.x
    Issue #3255602 by rbrownell, vuil, Nicolas Bouteille: Cannot update to 1...
vuil’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

nicolas bouteille’s picture

thx for the fix !