Minishlink / web-push-bundle

Bundle around the WebPush library
MIT License
45 stars 10 forks source link

not installable under Symfony 3.1 #5

Closed ThomasTr closed 7 years ago

ThomasTr commented 7 years ago

Hi,

would like to try your bundle, but can't install it under Symfony 3.1. The requirement of mdanter/ecc seems to conflict with the requirements from symfony/polyfill-php70, which is a requirement of symfony:

composer require minishlink/web-push-bundle:

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

  Problem 1
    - Installation request for minishlink/web-push-bundle ^1.3 -> satisfiable by minishlink/web-push-bundle[v1.
3].
    - minishlink/web-push-bundle v1.3 requires minishlink/web-push ^1.3.0 -> satisfiable by minishlink/web-push
[v1.3, v1.3.1, v1.3.2].
    - minishlink/web-push v1.3 requires mdanter/ecc ^0.4.0 -> satisfiable by mdanter/ecc[v0.4.0].
    - minishlink/web-push v1.3.1 requires mdanter/ecc ^0.4.0 -> satisfiable by mdanter/ecc[v0.4.0].
    - minishlink/web-push v1.3.2 requires mdanter/ecc ^0.4.0 -> satisfiable by mdanter/ecc[v0.4.0].
    - Conclusion: don't install mdanter/ecc v0.4.0

composer require mdanter/ecc:

  Problem 1
    - Installation request for mdanter/ecc ^0.4.0 -> satisfiable by mdanter/ecc[v0.4.0].
    - Conclusion: remove paragonie/random_compat v2.0.3
    - Conclusion: don't install paragonie/random_compat v2.0.3
    - mdanter/ecc v0.4.0 requires paragonie/random_compat 1.4.1|2.0.2 -> satisfiable by paragonie/random_compat[v1.4.1, v2.0.2].
    - Can only install one of: paragonie/random_compat[v1.4.1, v2.0.3].
    - Can only install one of: paragonie/random_compat[v2.0.2, v2.0.3].
    - Installation request for paragonie/random_compat (locked at v2.0.3) -> satisfiable by paragonie/random_compat[v2.0.3].

Is there a way to get around this?

Minishlink commented 7 years ago

Hi,

There's a commit on mdanter/ecc that fixes this conflict. There's no new tag though, so in the meantime you'll have to force composer to use the dev-master branch or this particular commit.

I filled an issue (phpecc/phpecc#179) on mdanter/ecc.

ThomasTr commented 7 years ago

Hi, thanks for your superfast response and your doing at mdanter/ecc.

Minishlink commented 7 years ago

Hi, the mdanter/ecc release has been tagged.

ThomasTr commented 7 years ago

Hi Minishlink,

it seems there is the next problem with another dependency:

  Problem 1
    - Installation request for minishlink/web-push-bundle ^1.3 -> satisfiable by minishlink/web-push-bundle[v1.3].
    - minishlink/web-push-bundle v1.3 requires minishlink/web-push ^1.3.0 -> satisfiable by minishlink/web-push[v1.3, v1.3.1, v1.3.2].
    - minishlink/web-push v1.3 requires spomky-labs/jose ^6.0 -> satisfiable by spomky-labs/jose[v6.0.0, v6.1.0, v6.1.1].
    - minishlink/web-push v1.3.1 requires spomky-labs/jose ^6.0 -> satisfiable by spomky-labs/jose[v6.0.0, v6.1.0, v6.1.1].
    - minishlink/web-push v1.3.2 requires spomky-labs/jose ^6.0 -> satisfiable by spomky-labs/jose[v6.0.0, v6.1.0, v6.1.1].
    - spomky-labs/jose v6.0.0 requires mdanter/ecc 0.4 -> satisfiable by mdanter/ecc[v0.4.0].
    - spomky-labs/jose v6.1.0 requires mdanter/ecc 0.4 -> satisfiable by mdanter/ecc[v0.4.0].
    - spomky-labs/jose v6.1.1 requires mdanter/ecc 0.4 -> satisfiable by mdanter/ecc[v0.4.0].
    - Conclusion: don't install mdanter/ecc v0.4.0

I have tried to debug this dependecy problem, but stuck on the spomky-labs/jose bundle which requires "mdanter/ecc": "0.4.*", but why it would not use 0.4.1?

Minishlink commented 7 years ago

Hi, it's the same problem apparently. In the jose library, the last commit on master fixes the commit but no tag was created. I filled an issue on Spomky-Labs/jose#150.

ThomasTr commented 7 years ago

Ah ok, i looked only in the already fixed composer.json. Thanks again for your help.

Minishlink commented 7 years ago

It should be fine now :)

ThomasTr commented 7 years ago

Hi,

thank you again.

composer require minishlink/web-push-bundle

works like a charm now :)