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

Unable to install S3 support in Laravel-Zero #347

Open
mathewparet opened this issue Jul 14, 2021 · 8 comments
Open

Unable to install S3 support in Laravel-Zero #347

mathewparet opened this issue Jul 14, 2021 · 8 comments

Comments

@mathewparet
Copy link

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 % 
@owenvoke
Copy link
Member

owenvoke commented Jul 14, 2021

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

@mathewparet
Copy link
Author

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

@aknosis
Copy link

aknosis commented Jul 20, 2021

@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)

@mathewparet
Copy link
Author

mathewparet commented Jul 21, 2021 via email

@EthraZa
Copy link

EthraZa commented Jul 21, 2021

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

@DRN88
Copy link

DRN88 commented Aug 10, 2021

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

@owenvoke
Copy link
Member

owenvoke commented Aug 11, 2021

@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.

@DRN88
Copy link

DRN88 commented Aug 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants