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

Laravel 9 compatibility #40

Closed
netbuild opened this issue Aug 26, 2022 · 2 comments
Closed

Laravel 9 compatibility #40

netbuild opened this issue Aug 26, 2022 · 2 comments

Comments

@netbuild
Copy link

Your requirements could not be resolved to an installable set of packages.

Problem 1
- sabre/cache[1.0.0, ..., 1.0.4] require 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.
- sabre/cache 1.0.2 requires php ^7.1 -> your php version (8.0.20) does not satisfy that requirement.
- ipinfo/ipinfolaravel v2.4.0 requires ipinfo/ipinfo ^2.3.1 -> satisfiable by ipinfo/ipinfo[v2.3.1, 2.3.x-dev].
- ipinfo/ipinfo[v2.3.1, ..., 2.3.x-dev] require sabre/cache ^1.0 -> satisfiable by sabre/cache[1.0.0, ..., 1.0.4].
- Root composer.json requires ipinfo/ipinfolaravel ^2.4 -> satisfiable by ipinfo/ipinfolaravel[v2.4.0].

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

@UmanShahzad
Copy link
Contributor

@rm-Umar can you check this out.

@rm-Umar
Copy link
Contributor

rm-Umar commented Aug 29, 2022

@UmanShahzad this is not an issue from our package. We are using sabre/cache in our php library and sabre/cache uses psr/simple-cache:1. https://github.com/sabre-io/cache/blob/8120da1320b4e0288fa2ff49cebb1a8221641faa/composer.json#L18. The laravel framework is using psr/simple-cache:3 by default but it supports 1.0 || 2.0 || 3.0 as well. So when someone creates a fresh laravel project it locks the psr/simple-cache version to 3 in composer.lock file. The simple solution for this is to change the psr-simple-cache version in composer.lock or just remove the lock file and install our package and composer will automatically create a new lock file with required versions.

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

3 participants