pdphilip / laravel-elasticsearch

Laravel Elasticsearch: An Elasticsearch implementation of Laravel's Eloquent ORM
MIT License
86 stars 16 forks source link

[Fixed] elasticsearch/elasticsearch v8.12.0 fail for requiere your package? #15

Closed abkrim closed 6 months ago

abkrim commented 6 months ago

Hello.

I'm trying to instal your package for Laravel 10.

Actually uses elasticsearch/elasticsearch on my deploy.

After try

 composer require pdphilip/elasticsearch
./composer.json has been updated
Running composer update pdphilip/elasticsearch
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - pdphilip/elasticsearch[v0.6.1, ..., v0.6.2, v1.6.0, ..., v1.6.2, v2.6.0, ..., v2.6.4] require illuminate/support ^5.8|^6.0 -> found illuminate/support[v5.8.0, ..., v5.8.36, v6.0.0, ..., v6.20.44] but these were not loaded, likely because it conflicts with another require.
    - pdphilip/elasticsearch[v0.7.1, ..., v0.7.2, v1.7.0, ..., v1.7.1, v2.7.0, ..., v2.7.7] require illuminate/support ^7.0 -> found illuminate/support[v7.0.0, ..., v7.30.6] but these were not loaded, likely because it conflicts with another require.
    - pdphilip/elasticsearch[v0.8.1, ..., v0.8.2, v1.8.0, ..., v1.8.2, v2.8.0, ..., v2.8.7] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
    - pdphilip/elasticsearch[v0.9.1, ..., v0.9.2, v1.9.0, ..., v1.9.3, v2.9.0, ..., v2.9.9] require illuminate/support ^9.0 -> found illuminate/support[v9.0.0, ..., v9.52.16] but these were not loaded, likely because it conflicts with another require.
    - pdphilip/elasticsearch[v2.10.0, ..., v2.10.1] require elasticsearch/elasticsearch 8.9 -> found elasticsearch/elasticsearch[v8.9.0] but the package is fixed to v8.12.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.
    - pdphilip/elasticsearch[v2.10.2, ..., v2.10.6] require elasticsearch/elasticsearch 8.10 -> found elasticsearch/elasticsearch[v8.10.0] but the package is fixed to v8.12.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.
    - Root composer.json requires pdphilip/elasticsearch * -> satisfiable by pdphilip/elasticsearch[v0.6.1, ..., v0.9.2, v1.6.0, ..., v1.9.3, v2.6.0, ..., v2.10.6].

I see that elasticsearch/elasticsearch is in a version elasticsearch/elasticsearch v8.12.0 PHP Client for Elasticsearch

For get package I need a workaround composer update pdphilip/elasticsearch elasticsearch/elasticsearch

Best regards.

abkrim commented 6 months ago

I spent some time (it was the first time that fork a repo, installed it, and ran a test).

Great work with your repo testing. A bit hard to modify for me. I use Laravel Herd, and new some changes for Mongoddb, MySQL, and others for no use same ports.

I put PR

Best regards.

pdphilip commented 6 months ago

Thank you @abkrim & welcome as a contributor!