Limenius / LiformBundle

Symfony Bundle to render Symfony Forms to JSON Schema
MIT License
138 stars 44 forks source link

Unable to install via composer due to conflicting dependencies #25

Open butteredptarmigan opened 4 years ago

butteredptarmigan commented 4 years ago

Environment: PHP 7.4 and Symfony 5.0.6 with Flex.

When running composer require limenius/liform-bundle ^0.16.0, the following error occurs:

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

  Problem 1
    - limenius/liform-bundle v0.16.0 requires limenius/liform ^0.16.0 -> satisfiable by limenius/liform[v0.16.0].
    - Installation request for limenius/liform-bundle ^0.16.0 -> satisfiable by limenius/liform-bundle[v0.16.0].
    - Conclusion: remove symfony/cache-contracts v2.0.1
    - Conclusion: don't install symfony/cache-contracts v2.0.1
    - limenius/liform v0.16.0 requires symfony/contracts ^2.1 -> satisfiable by symfony/contracts[v2.1.0, v2.1.1, v2.1.2, v2.1.3].
    - don't install symfony/contracts v2.1.0|don't install symfony/cache-contracts v2.0.1
    - don't install symfony/contracts v2.1.1|don't install symfony/cache-contracts v2.0.1
    - don't install symfony/contracts v2.1.2|don't install symfony/cache-contracts v2.0.1
    - don't install symfony/contracts v2.1.3|don't install symfony/cache-contracts v2.0.1
    - Installation request for symfony/cache-contracts (locked at v2.0.1) -> satisfiable by symfony/cache-contracts[v2.0.1].

Additional research (probably not so helpful) yielded this output:

$ composer why symfony/cache-contracts
symfony/cache  v5.0.6  requires  symfony/cache-contracts (^1.1.7|^2)

$ composer require symfony/contracts ^2.1.0
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install symfony/contracts v2.1.3
    - Conclusion: don't install symfony/contracts v2.1.2
    - Conclusion: don't install symfony/contracts v2.1.1
    - don't install symfony/http-client-contracts v2.0.1|don't install symfony/contracts v2.1.0     
    - don't install symfony/contracts v2.1.0|remove symfony/http-client-contracts v2.0.1
    - don't install symfony/contracts v2.1.0|don't install symfony/http-client-contracts v2.0.1     
    - Installation request for symfony/contracts ^2.1.0 -> satisfiable by symfony/contracts[v2.1.0, 
v2.1.1, v2.1.2, v2.1.3].
    - Installation request for symfony/http-client-contracts (locked at v2.0.1) -> satisfiable by symfony/http-client-contracts[v2.0.1].

I suppose this might be a version incompatibility with symfony/cache 5.0.6, but I'll be thankful for any help!