webfox / laravel-xero-oauth2

A Laravel integration for Xero using the Oauth 2.0 spec
MIT License
50 stars 32 forks source link

Laravel 9 support? #63

Closed musiwei closed 2 years ago

musiwei commented 2 years ago

This happens when I try to run composer update to upgrade to the latest Laravel 9, and this seems like the only package that stops me from doing so.

My project does use Xero API, would it be okay if I force the update? Thanks in advance.

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

  Problem 1
    - webfox/laravel-xero-oauth2[2.0.0, ..., 2.0.3] require php ^7.3 -> your php version (8.0.11) does not satisfy that requirement.
    - webfox/laravel-xero-oauth2[2.0.4, ..., 2.0.7] require laravel/framework ^5.5|^6.0|^7.0|^8.0 -> found laravel/framework[v5.5.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.0).
    - Root composer.json requires webfox/laravel-xero-oauth2 ^2.0 -> satisfiable by webfox/laravel-xero-oauth2[2.0.0, ..., 2.0.8].
    - Conclusion: don't install illuminate/database v8.82.0 (conflict analysis result)
    - Conclusion: don't install illuminate/database v8.83.0 (conflict analysis result)
    - Conclusion: don't install illuminate/database v8.83.1 (conflict analysis result)
    - Conclusion: don't install illuminate/database v8.83.2 (conflict analysis result)
    - Conclusion: don't install illuminate/database v8.81.0 (conflict analysis result)
    - webfox/laravel-xero-oauth2 2.0.8 requires laravel/framework ^5.5|^6.0|^7.0|^8.0|^9.0 -> satisfiable by laravel/framework[v9.0.0-beta.1, ..., 9.x-dev].
    - Only one of these can be installed: laravel/framework[v9.0.0-beta.1, ..., 9.x-dev], illuminate/database[v8.81.0, ..., 8.x-dev]. laravel/framework replaces illuminate/database and thus cannot coexist with it.
    - Root composer.json requires illuminate/database ^8.81 -> satisfiable by illuminate/database[v8.81.0, ..., 8.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
musiwei commented 2 years ago

Sorry this turns out to be illuminate/database's issue in Laravel Jetstream. By removing the package and only use Laravel 9 solved the issue.