Hi,
I'm getting the following error when requiring commerce_mollie.
When I run a composer require drupal/commerce_mollie from a clean install, it installs v1.0 but on my site I'm getting the following:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for drupal/commerce_mollie 1.0 -> satisfiable by drupal/commerce_mollie[1.0.0].
- drupal/commerce_mollie 1.0.0 requires drupal/commerce dev-8.x-2.x -> no matching package found.
This is weird because I've drupal/commerce 2.0 installed.
$composer show drupal/commerce
name : drupal/commerce
descrip. : Drupal Commerce is a flexible eCommerce solution.
keywords :
versions : * 2.0.0
type : drupal-module
license : GPL-2.0+
source : [git] https://git.drupal.org/project/commerce 8.x-2.0
dist : [zip] https://ftp.drupal.org/files/projects/commerce-8.x-2.0.zip 8.x-2.0
names : drupal/commerce
Is this a bug or am I doing something wrong?
Kind regards.
Comments
Comment #2
ndf commentedCan you change this line in the composer.json of commerce_mollie:
from:
"drupal/commerce": "dev-8.x-2.x",to:
"drupal/commerce": "~2",Does that help?
Comment #3
brahimmouhamou commentedHey ndf,
When I run composer require drupal/commerce_mollie, version 1.0.0-alpha2 is installed. Changing the composer.json in this commerce_mollie version will not do anything.
I don't understand what you mean, can you clarify?
Comment #4
brahimmouhamou commentedI removed my composer.lock file and was able to install commerce_mollie v1.0.
Except from that I think the composer.json file of this module should be updated.
Comment #5
lammensj commentedThis is indeed something the module maintainer should fix, a patch won't apply here because patching via composer occurs after the calculation of the dependencies. See: https://github.com/cweagans/composer-patches#patches-containing-modifica....
I'm experiencing the same issue and can only install the alpha2 version.
Comment #6
ndf commentedUhmm, still don't get why.
I can reproduce too.
...
Downloaded drupal core from tar file
Ran $ composer install
Ran $ composer require drupal/commerce_mollie
Comment #7
ndf commentedJust ran tests on travis; all green!
https://travis-ci.org/DxEx/commerce_mollie/builds/301464961
I am gonna push this today:
require commerce-2 stable in json
new requirement (because of commerce-2 stable); drupal 8.4.x
Comment #8
ndf commentedComment #10
ndf commentedJust create a new release 8.x-1.1
https://www.drupal.org/project/commerce_mollie/releases/8.x-1.1
Still "Needs review", hopefully this works...
Comment #11
lammensj commentedAlright, thx! Now we just have to wait until do picks it up :)
Comment #12
lammensj commentedIn the meantime, I can confirm that the dev-version spawns no dependency-errors. Composer can download it without raising any issues.
Comment #13
lammensj commentedThe 1.1-version is available. Again, no errors whatsoever.
Comment #14
ndf commentedIt works :)
This one:
Comment #15
ndf commentedThanks guys!
Comment #16
brahimmouhamou commentedAlright, composer installs it with ease now! Thanks for fixing!
Comment #17
ndf commented