craftcms / aws-s3

Amazon S3 volume type for Craft CMS.
https://plugins.craftcms.com/aws-s3
MIT License
61 stars 28 forks source link

Requiring plugin via composer results in dependency errors #130

Open TheFunkyMonk opened 3 years ago

TheFunkyMonk commented 3 years ago

Description

I can install this plugin through the plugin store just fine, but when trying to install via composer as outlined in the readme, it results in the following error:

Using version ^1.2 for craftcms/aws-s3
./composer.json has been updated
Running composer update craftcms/aws-s3
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - craftcms/aws-s3[1.2.11, ..., 1.2.15] require league/flysystem-aws-s3-v3 ^1.0.28 -> satisfiable by league/flysystem-aws-s3-v3[1.0.28, 1.0.29].
    - craftcms/aws-s3[1.2.0, ..., 1.2.10] require league/flysystem-aws-s3-v3 ^1.0.13 -> satisfiable by league/flysystem-aws-s3-v3[1.0.13, ..., 1.0.29].
    - league/flysystem-aws-s3-v3[1.0.26, ..., 1.0.29] require aws/aws-sdk-php ^3.20.0 -> satisfiable by aws/aws-sdk-php[3.20.0, ..., 3.198.4].
    - league/flysystem-aws-s3-v3[1.0.13, ..., 1.0.25] require aws/aws-sdk-php ^3.0.0 -> satisfiable by aws/aws-sdk-php[3.0.0, ..., 3.198.4].
    - aws/aws-sdk-php 3.0.0 requires guzzlehttp/guzzle ^5.3 || ^6.0.1 -> found guzzlehttp/guzzle[5.3.0, ..., 5.3.4, 6.0.1, ..., 6.5.5] but the package is fixed to 7.3.0 (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.
    - aws/aws-sdk-php[3.0.1, ..., 3.3.4] require guzzlehttp/psr7 ~1.0 -> found guzzlehttp/psr7[1.0.0, ..., 1.8.3] but the package is fixed to 2.1.0 (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.
    - aws/aws-sdk-php[3.3.5, ..., 3.18.28] require guzzlehttp/guzzle ~5.3|~6.0.1|~6.1 -> found guzzlehttp/guzzle[5.3.0, ..., 5.3.4, 6.0.1, ..., 6.5.5] but the package is fixed to 7.3.0 (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.
    - aws/aws-sdk-php 3.18.29 requires guzzlehttp/guzzle ~5.3.1|~6.2.1 -> found guzzlehttp/guzzle[5.3.1, 5.3.2, 5.3.3, 5.3.4, 6.2.1, 6.2.2, 6.2.3] but the package is fixed to 7.3.0 (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.
    - aws/aws-sdk-php[3.18.30, ..., 3.69.10] require guzzlehttp/guzzle ^5.3.1|^6.2.1 -> found guzzlehttp/guzzle[5.3.1, 5.3.2, 5.3.3, 5.3.4, 6.2.1, ..., 6.5.5] but the package is fixed to 7.3.0 (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.
    - aws/aws-sdk-php[3.69.11, ..., 3.130.3] require guzzlehttp/guzzle ^5.3.3|^6.2.1 -> found guzzlehttp/guzzle[5.3.3, 5.3.4, 6.2.1, ..., 6.5.5] but the package is fixed to 7.3.0 (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.
    - aws/aws-sdk-php[3.131.0, ..., 3.173.19] require guzzlehttp/psr7 ^1.4.1 -> found guzzlehttp/psr7[1.4.1, ..., 1.8.3] but the package is fixed to 2.1.0 (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.
    - aws/aws-sdk-php[3.173.20, ..., 3.198.4] require guzzlehttp/psr7 ^1.7.0 -> found guzzlehttp/psr7[1.7.0, ..., 1.8.3] but the package is fixed to 2.1.0 (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 craftcms/aws-s3 ^1.2 -> satisfiable by craftcms/aws-s3[1.2.0, ..., 1.2.15].

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.

Steps to reproduce

  1. From project directory, run composer require craftcms/aws-s3

Notes

Additional info

andris-sevcenko commented 3 years ago

Can you, please,

1) nuke the vendor folder 2) delete the composer.lock file 3) run composer update 4) Try requiring the plugin again?

ThinkGraphical commented 3 years ago

Same issue with a clean install

cliveportman commented 3 years ago

Not a proper fix, but I had this issue in August and was able to make the install work by spec'ing an older version. If it's the project I think it is then I used v1.2.12.