laravel-zero icon indicating copy to clipboard operation
laravel-zero copied to clipboard

Unable to install S3 support in Laravel-Zero

Open mathewparet opened this issue 2 years ago • 8 comments

Unable to install S3 support in Laravel-Zero

mathewparet@gMac aviator % composer require league/flysystem-aws-s3-v3
Using version ^2.1 for league/flysystem-aws-s3-v3
./composer.json has been updated
Running composer update league/flysystem-aws-s3-v3
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - league/flysystem-aws-s3-v3[2.1.0, ..., 2.x-dev] require league/flysystem ^2.0.0 -> found league/flysystem[2.0.0-alpha.1, ..., 2.x-dev] but the package is fixed to 1.1.4 (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 league/flysystem-aws-s3-v3 ^2.1 -> satisfiable by league/flysystem-aws-s3-v3[2.1.0, 2.x-dev].

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

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

I tried with --with-all-dependencies but still didn't work:

mathewparet@gMac aviator % composer require league/flysystem-aws-s3-v3 -W
Using version ^2.1 for league/flysystem-aws-s3-v3
./composer.json has been updated
Running composer update league/flysystem-aws-s3-v3 --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install league/flysystem-aws-s3-v3 2.1.0 (conflict analysis result)
    - Root composer.json requires league/flysystem-aws-s3-v3 ^2.1 -> satisfiable by league/flysystem-aws-s3-v3[2.1.0, 2.x-dev].
    - Conclusion: don't install league/flysystem 2.1.0 (conflict analysis result)
    - Conclusion: don't install league/flysystem 1.1.4 (conflict analysis result)
    - Conclusion: don't install league/flysystem 2.1.1 (conflict analysis result)
    - laravel-zero/framework is locked to version v8.9.0 and an update of this package was not requested.
    - league/flysystem-aws-s3-v3 2.x-dev requires league/flysystem ^2.0.0 -> satisfiable by league/flysystem[2.0.0-alpha.1, ..., 2.x-dev].
    - You can only install one version of a package, so only one of these can be installed: league/flysystem[1.1.3, 1.1.4, 1.x-dev, 2.0.0-alpha.1, ..., 2.x-dev].
    - laravel-zero/framework v8.9.0 requires league/flysystem ^1.1.3 -> satisfiable by league/flysystem[1.1.3, 1.1.4, 1.x-dev].
    - Conclusion: don't install league/flysystem 1.1.3 (conflict analysis result)

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

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
mathewparet@gMac aviator % 

mathewparet avatar Jul 14 '21 07:07 mathewparet

Looks like we'll need to add support for Flysystem 2.x, not sure why I hadn't done this already. 👍🏻

Actually, following Laravel, this would be a feature for Laravel Zero 9.x, I think you'll need to try using composer require league/flysystem-aws-s3-v3:^1 to support Flysystem 1

owenvoke avatar Jul 14 '21 07:07 owenvoke

Does it mean a change in Laravel Zero codebase? Or just a dependency adjustment that I can do in composer.json?

mathewparet avatar Jul 14 '21 07:07 mathewparet

@mathewparet You will get multiple composer conflicts trying to implement Flysystem 2 with the underlying Laravel 8 base. (Source: tried doing the same in a Lumen app recently)

aknosis avatar Jul 20 '21 22:07 aknosis

ok, guess I'll wait for an update then.

On Wed, Jul 21, 2021 at 8:59 AM Paul Giberson @.***> wrote:

@mathewparet https://github.com/mathewparet You will get multiple composer conflicts trying to implement Flysystem 2 with the underlying Laravel 8 base. (Source: tried doing the same in a Lumen app recently)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/laravel-zero/laravel-zero/issues/347#issuecomment-883758876, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASGB2ULDMY2E6DAVRC6LSTTYX5WFANCNFSM5AK2UX7Q .

-- Best Regards, Mathew Paret

🎄🌴 Please consider the environment before printing. Reducing font size by 1 will save an average of 18% on paper.🌴🎄

mathewparet avatar Jul 21 '21 00:07 mathewparet

I was about to try it in the coming weeks... felling sad now! Gonna wait too, or just exec s5cmd.

EthraZa avatar Jul 21 '21 00:07 EthraZa

Same issue here. I'd like to use flysystem-ftp, but that requires v2.0 flysystem.

DRN88 avatar Aug 10 '21 09:08 DRN88

@DRN88, you can use FTP in v1 as well, either directly through Laravel or using the Flysystem FTP adapter.

When Laravel 9 releases (January 2022), we will also create a new 9.x release of Laravel Zero. 👍🏻 This will then support Flysystem 2.x, apologies for any inconvenience.

owenvoke avatar Aug 11 '21 13:08 owenvoke

@owenvoke Oh thanks! No clue, why I couldn't find v1 by myself, hehe. Thanks again!

DRN88 avatar Aug 11 '21 19:08 DRN88