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

Installing stable release requires beta package, thus conflicting minimum stability requirements #10025

Closed
fschwaiger opened this issue Apr 10, 2016 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@fschwaiger
Copy link

 ...$ composer require piwik/piwik
 Using version ^2.16 for piwik/piwik
 ./composer.json has been updated
 Loading composer repositories with package information
 Updating dependencies
 Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for piwik/piwik ^2.16 -> satisfiable by piwik/piwik[2.16.0].
    - piwik/piwik 2.16.0 requires php-di/php-di 5.0.0-beta1 -> satisfiable by php-di/php-di[5.0.0-beta1] but these conflict with your requirements or minimum-stability

 Installation failed, reverting ./composer.json to its original content.
@tsteur tsteur added Bug For errors / faults / flaws / inconsistencies etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. labels Apr 10, 2016
@tsteur
Copy link
Member

tsteur commented Apr 10, 2016

I can reproduce this. It works fine when performing a git checkout and then install via composer but not when installing directly via composer. Presume we need to set minimum-stability or so in composer.json.

BTW: For QA & production systems we recommend to only install builds that are downloaded from http://piwik.org see http://piwik.org/faq/how-to-install/faq_18271/ . Installs via git or composer should be only done for development on local systems.

Feel free to issue a pull request.

@sgiehl
Copy link
Member

sgiehl commented Apr 10, 2016

Problem is, that we require a beta of php-di/php-di. But we currently can't require the stable of 5.0.0 as it requires a higher php version than the beta. I think this issue won't be a problem for 3.0 anymore as we will increase required php version aswell.

@sgiehl sgiehl added this to the 2.16.x (LTS) milestone Apr 10, 2016
@mattab
Copy link
Member

mattab commented Jul 18, 2016

as per @sgiehl comment: it is fixed in Piwik 3 (https://github.com/piwik/piwik/blob/3.x-dev/composer.json#L50) and we cannot fix it in LTS, closing.

@mattab mattab closed this as completed Jul 18, 2016
@mattab mattab added the wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it. label Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

4 participants