Skip to content

2.8 composer.json depends on unavailable Polyfill packages #16363

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

Closed
fracsi opened this issue Oct 28, 2015 · 5 comments
Closed

2.8 composer.json depends on unavailable Polyfill packages #16363

fracsi opened this issue Oct 28, 2015 · 5 comments

Comments

@fracsi
Copy link
Contributor

fracsi commented Oct 28, 2015

2.8 composer.json contains:

...
        "symfony/polyfill-intl-icu": "~1.0",
        "symfony/polyfill-mbstring": "~1.0",
        "symfony/polyfill-php54": "~1.0",
        "symfony/polyfill-php55": "~1.0",
        "symfony/polyfill-php56": "~1.0",
        "symfony/polyfill-php70": "~1.0",
        "symfony/polyfill-util": "~1.0"
...

But there is no 1.0 tag on any of them so composer fails to update.
Composer error message: symfony/symfony 2.8.x-dev requires symfony/polyfill-intl-icu ~1.0 -> no matching package found.

@ghost
Copy link

ghost commented Oct 28, 2015

Same here.

- symfony/symfony 2.8.x-dev requires symfony/polyfill-intl-icu ~1.0 -> no matching package found.
- symfony/symfony 2.8.x-dev requires symfony/polyfill-intl-icu ~1.0 -> no matching package found.
- Installation request for symfony/symfony 2.8.x-dev -> satisfiable by symfony/symfony[2.8.x-dev].

@Tobion
Copy link
Contributor

Tobion commented Oct 28, 2015

2.8 is not released yet. If you use it, you have expect its not working out-of-then-box. You can change the min stability.

@Tobion Tobion closed this as completed Oct 28, 2015
@ghost
Copy link

ghost commented Oct 28, 2015

@Tobion So what should I do to install Symfony 2.8.x-dev on Symfony Standard Edition (branch "2.8")?
https://github.com/symfony/symfony-standard

@ghost
Copy link

ghost commented Oct 28, 2015

Solution as @Tobion described:

Add this to composer.json

  "minimum-stability": "dev",

(Warning: Packages could be unstable).

@wouterj
Copy link
Member

wouterj commented Oct 28, 2015

Either add this to your composer.json:

"minimum-stability": "dev",
"prefer-stable": true,

This means every package may be isntalled as unstable.

Or whitelist all packages that need to be dev (in this case the polyfill packages):

        "symfony/polyfill-intl-icu": "@dev",
        "symfony/polyfill-mbstring": "@dev",
        "symfony/polyfill-php54": "@dev",
        "symfony/polyfill-php55": "@dev",
        "symfony/polyfill-php56": "@dev",
        "symfony/polyfill-php70": "@dev",
        "symfony/polyfill-util": "@dev"

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

No branches or pull requests

3 participants