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 cannot resolve requirements #2

Open
0ro opened this issue Nov 18, 2021 · 1 comment
Open

Composer cannot resolve requirements #2

0ro opened this issue Nov 18, 2021 · 1 comment

Comments

@0ro
Copy link

0ro commented Nov 18, 2021

I'm new in php, sorry if something bad and not accurate in my issue. I'm trying to install package via composer but get the next error:

composer require stwon/covpasscheck-php
  Problem 1
    - Root composer.json requires stwon/covpasscheck-php 1.5.1 -> satisfiable by stwon/covpasscheck-php[1.5.1].
    - stwon/covpasscheck-php 1.5.1 requires spomky-labs/cbor-php dev-byte-string-encode-fix -> found spomky-labs/cbor-php[dev-Preparation2.0, v1.0.0, ..., v1.1.x-dev, v2.0.0, v2.0.1, v2.0.x-dev, v2.1.x-dev, v3.0.x-dev] but it does not match the constraint.

I went to https://github.com/Spomky-Labs/cbor-php repository and didn't find dev-byte-string-encode-fix version there. Could you fix requirements? Or help me with avoiding a problem.

@timoschwarzer
Copy link
Member

Hi!

  1. it seems like you're not using PHP 8. Unfortunately, I forgot to add the PHP 8 requirement to the dependency list in versions before 1.5.2. Older versions will install, but also not work with PHP 7 or earlier.
  2. It should get the cbor-php library from my fork, which has the byte-string-encode-fix branch. Can you try to copy the vcs block from covpasscheck-php's composer.json into yours and try running composer install again?

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

2 participants