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

Composer require minimum stability conflict. #123

Closed
TheBabaYaga opened this issue Sep 14, 2018 · 2 comments · Fixed by #297
Closed

Composer require minimum stability conflict. #123

TheBabaYaga opened this issue Sep 14, 2018 · 2 comments · Fixed by #297
Labels

Comments

@TheBabaYaga
Copy link

TheBabaYaga commented Sep 14, 2018

Hi,

Is there a reason why the minimum stability of the tagged versions is set to dev and not stable? We would like to include this library, but our minimum stability requirement is stable.

requires vgrem/php-spo dev-master#3318c782b8e1c1c1f274fb0bb37efab3a5274bee -> satisfiable by vgrem/php-spo[dev-master] but these conflict with your requirements or minimum-stability

Thanks in advance!

@vgrem
Copy link
Owner

vgrem commented Sep 14, 2018

Hi,

no any particular reason, just historically minimum-stability was set to dev.

Not sure, what would be the preferable option here, should we abandon minimum-stability attribute or replace its value to stable?

Vadim

@TheBabaYaga
Copy link
Author

Hi,

It depends on the fact if your library depends on another library that isn't marked as stable.

From the composer docs:

minimum-stability (root-only)#
This defines the default behavior for filtering packages by stability. This defaults to stable, so if you rely on a dev package, you should specify it in your file to avoid surprises.

All versions of each package are checked for stability, and those that are less stable than the minimum-stability setting will be ignored when resolving your project dependencies. (Note that you can also specify stability requirements on a per-package basis using stability flags in the version constraints that you specify in a require block (see package links for more details).

Available options (in order of stability) are dev, alpha, beta, RC, and stable.

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

Successfully merging a pull request may close this issue.

2 participants