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 fails because of salsify dependency #38

Open
pkoppstein opened this issue Oct 13, 2022 · 3 comments · May be fixed by #42
Open

composer fails because of salsify dependency #38

pkoppstein opened this issue Oct 13, 2022 · 3 comments · May be fixed by #42

Comments

@pkoppstein
Copy link

composer require swaggest/json-cli
Info from https://repo.packagist.org: #StandWithUkraine
Using version ^1.11 for swaggest/json-cli
./composer.json has been updated
Running composer update swaggest/json-cli
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- salsify/json-streaming-parser v7.0 requires php ^5.4 | ^7.0 -> your php version (8.1.11) does not satisfy that requirement.
- swaggest/json-cli v1.11.0 requires salsify/json-streaming-parser ^7.0 -> satisfiable by salsify/json-streaming-parser[v7.0].
- Root composer.json requires swaggest/json-cli ^1.11 -> satisfiable by swaggest/json-cli[v1.11.0].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require swaggest/json-cli:*" to figure out if any version is installable, or "composer require swaggest/json-cli:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
peter:~/jq$

@HighLiuk
Copy link

HighLiuk commented Nov 1, 2023

Same here. @vearutop any news on this?

HighLiuk added a commit to HighLiuk/json-cli that referenced this issue Nov 1, 2023
HighLiuk added a commit to HighLiuk/json-cli that referenced this issue Nov 1, 2023
@HighLiuk HighLiuk linked a pull request Nov 1, 2023 that will close this issue
@vearutop
Copy link
Member

vearutop commented Nov 1, 2023

Could you explain the context when this issue is happening?

If I run composer update on current master, it works for me without issues.

@HighLiuk
Copy link

HighLiuk commented Nov 1, 2023

Hey there @vearutop thank you for the reply.
The first time I've run composer global require swaggest/json-cli it did not install the latest version (1.11).
If I require ^1.11 as in @pkoppstein's description, I get the same conflicts described by them.

The main problem is that

salsify/json-streaming-parser v7.0 requires php ^5.4 | ^7.0 -> your php version (8.1.11) does not satisfy that requirement.

so basically you cannot use swaggest/json-cli^1.11 for PHP 8.0+

Updating the dependencies removes the issue.

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

Successfully merging a pull request may close this issue.

3 participants