brefphp / laravel-bridge

Package to use Laravel on AWS Lambda with Bref
https://bref.sh/docs/frameworks/laravel.html
MIT License
314 stars 63 forks source link

aws/aws-sdk-php and guzzlehttp/psr problem when installing the bridge #49

Closed alexjustesen closed 2 years ago

alexjustesen commented 2 years ago

I'm just getting started using bref and the laravel-bridge and ran into an issue when requiring the dependencies.

Stack

Error

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

  Problem 1
    - aws/aws-sdk-php[3.134.0, ..., 3.173.19] require guzzlehttp/psr7 ^1.4.1 -> found guzzlehttp/psr7[1.4.1, ..., 1.x-dev] but the package is fixed to 2.0.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.185.18] require guzzlehttp/psr7 ^1.7.0 -> found guzzlehttp/psr7[1.7.0, ..., 1.x-dev] but the package is fixed to 2.0.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.
    - bref/laravel-bridge 1.1.0 requires aws/aws-sdk-php ^3.134 -> satisfiable by aws/aws-sdk-php[3.134.0, ..., 3.185.18].
    - Root composer.json requires bref/laravel-bridge ^1.1 -> satisfiable by bref/laravel-bridge[1.1.0].

Steps to reproduce

# Install a fresh version of Laravel
curl -s "https://laravel.build/laravel-bref-testing?with=mysql,redis" | bash
cd laravel-bref-testing

# Publish the Sail assets, not required but I did it.
php artisan sail:publish

# Build the app container
sail build --no-cache

# Start the stack
sail up -d

# Install bref/bref and bref/laravel-bridge
sail composer require bref/bref bref/laravel-bridge

Any help would be greatly appreciated, thanks!

alexjustesen commented 2 years ago

Quick update... I ended up requiring league/flysystem-aws-s3-v3 "^1.0" referenced in the Laravel docs.

With specifying the version I was able to move on from the Problem above, hope this helps someone else. Will close this ticket.