laravel-zero
laravel-zero copied to clipboard
Unable to install S3 support in Laravel-Zero
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 %
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
Does it mean a change in Laravel Zero codebase? Or just a dependency adjustment that I can do in composer.json?
@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)
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.🌴🎄
I was about to try it in the coming weeks... felling sad now! Gonna wait too, or just exec s5cmd.
Same issue here. I'd like to use flysystem-ftp, but that requires v2.0 flysystem.
@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 Oh thanks! No clue, why I couldn't find v1 by myself, hehe. Thanks again!