#Issues upgrading to ^v10.x.x: laravel/framework replaces illuminate/contracts

10 messages · Page 1 of 1 (latest)

swift hinge
#

I'm following the guide for upgrading from 9.x.x to 10.x.x, and am running into issues when trying to update.
A lot of composer packages depend on illuminate/contracts, and apparently laravel/framework[v10.0.0] replaces these. This is the error I'm facing right now (and it's not just this package, but many others as well):

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

  Problem 1
    - Root composer.json requires laravel/framework ^10.0 -> satisfiable by laravel/framework[v10.0.0].
    - ryangjchandler/laravel-cloudflare-turnstile v0.2.0 requires illuminate/contracts ^9.0 -> satisfiable by illuminate/contracts[v9.0.0, ..., v9.52.0].
    - Only one of these can be installed: illuminate/contracts[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.0, v10.0.0], laravel/framework[v10.0.0]. laravel/framework replaces illuminate/contracts and thus cannot coexist with it.
    - Root composer.json requires ryangjchandler/laravel-cloudflare-turnstile ^0.2.0 -> satisfiable by ryangjchandler/laravel-cloudflare-turnstile[v0.2.0].

Do I just have to wait for all these packages to push updates fixing their dependency, or is it a problem on my side?

normal dew
#

You most likely need to wait for them to upgrade or you force your way through by using the "ignore platform reqs" flag

earnest wren
#

Platform reqs won't fix that I think, that's just PHP and extensions. You'd have to wait, and check if the package has a new version. Because ^0.2 won't update to ^0.3 automatically, since it's pre-stable

normal dew
#

Thought it would force its way through ala ignore all?

earnest wren
#

--ignore-platform-reqs: ignore all platform requirements (php, hhvm, lib-* and ext-*) and force the installation even if the local machine does not fulfill these.

#

Apart from waiting, you could also send a PR to ryangjchandler/laravel-cloudflare-turnstile ofc

swift hinge
normal dew
#

Probably best to wait with the upgrade then, especially if you are dependent of other packages

#

Might wanna revisit in a month or two

earnest wren
#

Yeah, like random number is saying, probably just wait a bit. Keep an eye on the packages you use (you can be notified of releases). Some packages would require a major version bump, composer will say it fails installing, so don't stare blindly on just composer telling you it can't install, you might have to upgrade packages as well