mollie / Shopware6

MIT License
51 stars 53 forks source link

Can't update plugin because shopware/elasticsearch is a required package #873

Open MelvinAchterhuis opened 2 days ago

MelvinAchterhuis commented 2 days ago

Shopware version: 6.6.5.1 PHP version: 8.3.12

Currently I am running version 4.9.3 of the plugin When trying to update with composer nothing happens:

lando composer update "store.shopware.com/*"
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove

When requiring the latest version of the plugin I get the following error

lando composer require store.shopware.com/molliepayments:"^4.11"
./composer.json has been updated
Running composer update store.shopware.com/molliepayments
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - store.shopware.com/molliepayments[4.11.0, ..., 4.11.2] require shopware/elasticsearch 6.4.1.0 - 6.7.0.0 -> satisfiable by shopware/elasticsearch[6.4.1.0, ..., v6.6.7.0].
    - shopware/elasticsearch v6.6.5.1 requires opensearch-project/opensearch-php ^2.0 -> satisfiable by opensearch-project/opensearch-php[2.0.0, ..., 2.3.1].
    - opensearch-project/opensearch-php 2.3.1 requires ezimuel/ringphp ^1.2.2 -> satisfiable by ezimuel/ringphp[1.2.2].
    - opensearch-project/opensearch-php[2.0.2, ..., 2.3.0] require ezimuel/ringphp ^1.1.2 -> satisfiable by ezimuel/ringphp[1.1.2, 1.2.0, 1.2.1, 1.2.2].
    - ezimuel/ringphp[1.1.2, ..., 1.2.2] require react/promise ~2.0 -> found react/promise[v2.0.0, ..., v2.11.0] but the package is fixed to v3.2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - opensearch-project/opensearch-php[2.0.0, ..., 2.0.1] require psr/log ^1|^2 -> found psr/log[1.0.0, ..., 1.1.4, 2.0.0] but the package is fixed to 3.0.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch[6.4.1.0, ..., 6.4.5.1] require doctrine/dbal 2.12.1 -> found doctrine/dbal[2.12.1] but the package is fixed to 3.9.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch[6.4.6.0, ..., 6.4.10.1] require doctrine/dbal 2.13.3 -> found doctrine/dbal[2.13.3] but the package is fixed to 3.9.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch[6.4.11.0, ..., 6.4.20.2] require doctrine/dbal ~2.13.8 -> found doctrine/dbal[2.13.8, 2.13.9] but the package is fixed to 3.9.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch[6.5.0.0, ..., v6.5.7.4] require php ~8.1.0 || ~8.2.0 -> your php version (8.3.12) does not satisfy that requirement.
    - shopware/elasticsearch v6.5.8.0 requires shopware/core v6.5.8.0 -> found shopware/core[v6.5.8.0] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.1 requires shopware/core v6.5.8.1 -> found shopware/core[v6.5.8.1] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.2 requires shopware/core v6.5.8.2 -> found shopware/core[v6.5.8.2] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.3 requires shopware/core v6.5.8.3 -> found shopware/core[v6.5.8.3] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.4 requires shopware/core v6.5.8.4 -> found shopware/core[v6.5.8.4] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.5 requires shopware/core v6.5.8.5 -> found shopware/core[v6.5.8.5] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.6 requires shopware/core v6.5.8.6 -> found shopware/core[v6.5.8.6] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.7 requires shopware/core v6.5.8.7 -> found shopware/core[v6.5.8.7] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.8 requires shopware/core v6.5.8.8 -> found shopware/core[v6.5.8.8] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.9 requires shopware/core v6.5.8.9 -> found shopware/core[v6.5.8.9] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.10 requires shopware/core v6.5.8.10 -> found shopware/core[v6.5.8.10] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.11 requires shopware/core v6.5.8.11 -> found shopware/core[v6.5.8.11] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.12 requires shopware/core v6.5.8.12 -> found shopware/core[v6.5.8.12] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.13 requires shopware/core v6.5.8.13 -> found shopware/core[v6.5.8.13] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.5.8.14 requires shopware/core v6.5.8.14 -> found shopware/core[v6.5.8.14] but it conflicts with your root composer.json require (^6.6).
    - shopware/elasticsearch v6.6.0.0 requires shopware/core v6.6.0.0 -> found shopware/core[v6.6.0.0] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.0.1 requires shopware/core v6.6.0.1 -> found shopware/core[v6.6.0.1] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.0.2 requires shopware/core v6.6.0.2 -> found shopware/core[v6.6.0.2] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.0.3 requires shopware/core v6.6.0.3 -> found shopware/core[v6.6.0.3] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.1.0 requires shopware/core v6.6.1.0 -> found shopware/core[v6.6.1.0] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.1.1 requires shopware/core v6.6.1.1 -> found shopware/core[v6.6.1.1] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.1.2 requires shopware/core v6.6.1.2 -> found shopware/core[v6.6.1.2] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.2.0 requires shopware/core v6.6.2.0 -> found shopware/core[v6.6.2.0] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.3.0 requires shopware/core v6.6.3.0 -> found shopware/core[v6.6.3.0] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.3.1 requires shopware/core v6.6.3.1 -> found shopware/core[v6.6.3.1] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.4.0 requires shopware/core v6.6.4.0 -> found shopware/core[v6.6.4.0] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.4.1 requires shopware/core v6.6.4.1 -> found shopware/core[v6.6.4.1] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.5.0 requires shopware/core v6.6.5.0 -> found shopware/core[v6.6.5.0] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.6.0 requires shopware/core v6.6.6.0 -> found shopware/core[v6.6.6.0] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.6.1 requires shopware/core v6.6.6.1 -> found shopware/core[v6.6.6.1] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - shopware/elasticsearch v6.6.7.0 requires shopware/core v6.6.7.0 -> found shopware/core[v6.6.7.0] but the package is fixed to v6.6.5.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires store.shopware.com/molliepayments ^4.11 -> satisfiable by store.shopware.com/molliepayments[4.11.0, 4.11.1, 4.11.2].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

This project doesn't use Elasticsearch/Opensearch, it this intended behaviour by the Mollie plugin to require shopware/elasticsearch?

BlackScorp commented 2 days ago

hi @MelvinAchterhuis the problem here that i have to require shopware/elasticsearch, otherwise the class "Shopware\Elasticsearch\Admin\Indexer\AbstractAdminIndexer" does not exists and the entire plugin would not work.

in order to support ElasticSearch i have to create some classes which extends this abstract class.

As far as i can see, shopware/elasticsearch 6.6.5.1 cannot be installed due to some other packages wich are locked in your composer.lock. so composer tries to install shopware/elasticsearch 6.5.0.0 and this is not compatible with php 8.3

i would suggest to delete the composer.lock file and try to install the plugin again. maybe that helps.

Best regards