zepgram / module-disable-search-engine

Module to disable OpenSearch/Elasticsearch in Magento2. Disable also fulltext indexing for category search.
MIT License
79 stars 10 forks source link

Can't install on Magento 2.4.2 #8

Closed Eddcapone closed 2 years ago

Eddcapone commented 2 years ago

I get a few problems:

company@rb-VirtualBox:/var/www/company/m2$ memcomposer require zepgram/module-disable-search-engine
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^0.2.0 for zepgram/module-disable-search-engine
./composer.json has been updated
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Can only install one of: magento/module-catalog-search[102.0.4, 102.0.2].
    - Can only install one of: magento/module-catalog-search[102.0.4, 102.0.2].
    - Can only install one of: magento/module-catalog-search[102.0.4, 102.0.2].
    - zepgram/module-disable-search-engine 0.2.0 requires magento/module-catalog-search ^102.0.4 -> satisfiable by magento/module-catalog-search[102.0.4].
    - Installation request for zepgram/module-disable-search-engine ^0.2.0 -> satisfiable by zepgram/module-disable-search-engine[0.2.0].
    - Installation request for magento/module-catalog-search (locked at 102.0.2) -> satisfiable by magento/module-catalog-search[102.0.2].

Installation failed, reverting ./composer.json to its original content.

I also tried it with composer v2

company@rb-VirtualBox:/var/www/company/fresh_m242$ composer2 require zepgram/module-disable-search-engine
Using version ^0.2.0 for zepgram/module-disable-search-engine
./composer.json has been updated
Running composer update zepgram/module-disable-search-engine
Loading composer repositories with package information
In Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires zepgram/module-disable-search-engine ^0.2.0 -> satisfiable by zepgram/module-disable-search-engine[0.2.0].
    - zepgram/module-disable-search-engine 0.2.0 requires magento/framework ^103.0.4 -> found magento/framework[103.0.4] but the package is fixed to 103.0.2 (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.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require zepgram/module-disable-search-engine:*" to figure out if any version is installable, or "composer require zepgram/module-disable-search-engine:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Eddcapone commented 2 years ago

I tried it with composer require zepgram/module-disable-search-engine:* and it worked. It was not working because the latest version is not compatible with Magento 2.4.2, It worked with 0.0.3.

zepgram commented 2 years ago

The latest version is for Magento 2.4.4 as mentioned in readme.MD

zepgram commented 2 years ago

image

Eddcapone commented 2 years ago

Yes I understand now that there is no backwards compatibility