json-cli
json-cli copied to clipboard
composer fails because of salsify dependency
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$
Same here. @vearutop any news on this?
Could you explain the context when this issue is happening?
If I run composer update on current master, it works for me without issues.
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.