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

Cannot install inside a fresh laravel 10 project #129

Closed
RRosalia opened this issue Mar 14, 2023 · 3 comments
Closed

Cannot install inside a fresh laravel 10 project #129

RRosalia opened this issue Mar 14, 2023 · 3 comments

Comments

@RRosalia
Copy link

RRosalia commented Mar 14, 2023

Environment

  • PHP Version: 8.1
  • Database Driver & Version: mysql 8.0
  • Actions Version: ^4.2
  • Laravel Version: 10

Issue description

Composer install fails when installing inside a fresh laravel 10 project

Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - dragon-code/support[v6.0.1, ..., v6.11.0] require dragon-code/contracts ^2.18 -> found dragon-code/contracts[2.x-dev] but it does not match your minimum-stability.
    - dragon-code/laravel-actions dev-main requires dragon-code/support ^6.6 -> satisfiable by dragon-code/support[v6.6.0, ..., v6.11.0].
    - Root composer.json requires dragon-code/laravel-actions dev-main -> satisfiable by dragon-code/laravel-actions[dev-main].

Steps to reproduce

  1. Install Laravel 10
  2. composer require dragon-code/laravel-actions
@andrey-helldar
Copy link
Member

andrey-helldar commented Mar 14, 2023

Hi!

Check the value of the minimum-stability key in the composer.json. I recommend replacing it with stable instead of dev.

Due to the fact that your application is allowed to install dev versions, the composer tries to download unstable versions of packages.

The fact that the application uses the dev branch can be seen from the log - it writes the dev-main version.

So if your application has minimum-stability equal to dev, then when you run composer require dragon-code/laravel-actions , the composer will install the unstable "version" dev-main instead of the stable 4.2.

My steps to reproduce:

  1. laravel new test
  2. cd test
  3. composer require dragon-code/laravel-actions

The value of minimum-stability defaults to stable

If you need to have a stability level other than stable, you must explicitly specify the required version when installing dependencies. For example:

composer require dragon-code/laravel-actions:^4.2

image

@RRosalia
Copy link
Author

Okay clear thanks! That was indeed the issue!

@andrey-helldar
Copy link
Member

You're welcome!

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

2 participants