Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve dependency - psr/simple-cache v1.0 - lara 9.x #573

Closed
peterfliszar opened this issue Mar 23, 2022 · 4 comments
Closed

Resolve dependency - psr/simple-cache v1.0 - lara 9.x #573

peterfliszar opened this issue Mar 23, 2022 · 4 comments

Comments

@peterfliszar
Copy link

Q A
Bug report? no
Feature request? yes
Library version 2.2.x

With Laravel 9.x installation, there is a conflict in dependencies.

  • laravel require: "psr/simple-cache": "^1.0|^2.0|^3.0",
  • phpinsights: "psr/simple-cache": "^1.0"

There is a workaround: locking all other packages to v1.0, it works fine, but this is only a workaround, not a permanent solution. I will test this.

Please resolve this conflict, if it is possible.

--

composer message:

Problem 1
- Root composer.json requires nunomaduro/phpinsights ^2.2 -> satisfiable by nunomaduro/phpinsights[v2.2.0].
- nunomaduro/phpinsights v2.2.0 requires psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but the package is fixed to 3.0.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.

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 nunomaduro/phpinsights:*" to figure out if any version is installable, or "composer require nunomaduro/phpinsights:^2.1" if you know which you need.

@AyoobMH
Copy link

AyoobMH commented Mar 27, 2022

I believe this is a duplicate of #522

@Krato
Copy link

Krato commented Apr 12, 2022

Yes. But, how to resolve?

@webard
Copy link

webard commented Apr 16, 2022

Look at usage https://github.com/nunomaduro/phpinsights/search?q=simplecache and make PR with newer version in composer.json, checking if everything works fine.

cmgmyr pushed a commit that referenced this issue May 27, 2022
* Allow psr/simple-cache ^2.0 and ^3.0

* Exclude psr/simple-cache:^3.0 on symfony:^4.4
@cmgmyr
Copy link
Collaborator

cmgmyr commented May 27, 2022

Fixed in #580

@cmgmyr cmgmyr closed this as completed May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants