2016-03-31 23:37:06 +00:00
--TEST--
Test the error output of solver problems.
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
2020-01-29 21:47:16 +00:00
{ "name": "package/found", "version": "2.0.0", "require": {
"unstable/package2": "2.*"
} },
{ "name": "package/found3", "version": "2.0.0", "require": {
"unstable/package2": "2.*"
} },
{ "name": "package/found4", "version": "2.0.0", "require": {
"non-existent/pkg2": "1.*"
} },
{ "name": "package/found5", "version": "2.0.0", "require": {
"requirer/pkg": "1.*"
} },
{ "name": "package/found6", "version": "2.0.0", "require": {
"stable-requiree-excluded/pkg2": "1.0.1"
} },
{ "name": "package/found7", "version": "2.0.0", "require": {
"php-64bit": "1.0.1"
} },
{ "name": "conflict/requirer", "version": "2.0.0", "require": {
"conflict/dep": "1.0.0"
} },
{ "name": "conflict/requirer2", "version": "2.0.0", "require": {
"conflict/dep": "2.0.0"
} },
{ "name": "conflict/dep", "version": "1.0.0" },
{ "name": "conflict/dep", "version": "2.0.0" },
2016-03-31 23:37:06 +00:00
{ "name": "unstable/package", "version": "2.0.0-alpha" },
{ "name": "unstable/package", "version": "1.0.0" },
2020-01-29 21:47:16 +00:00
{ "name": "unstable/package2", "version": "2.0.0-alpha" },
{ "name": "unstable/package2", "version": "1.0.0" },
{ "name": "requirer/pkg", "version": "1.0.0", "require": {
"dependency/pkg": "1.0.0",
"dependency/unstable-pkg": "1.0.0-dev"
} },
2019-01-29 12:27:52 +00:00
{ "name": "dependency/pkg", "version": "2.0.0" },
{ "name": "dependency/pkg", "version": "1.0.0" },
2020-01-29 21:47:16 +00:00
{ "name": "dependency/unstable-pkg", "version": "1.0.0-dev" },
2019-01-29 12:27:52 +00:00
{ "name": "stable-requiree-excluded/pkg", "version": "1.0.1" },
2020-03-12 14:30:20 +00:00
{ "name": "stable-requiree-excluded/pkg", "version": "1.0.0" },
{ "name": "api/provider", "description": "Provides the missing API", "version": "1.0.0", "provide": { "missing/provided-api": "1.*" } }
2016-03-31 23:37:06 +00:00
]
}
],
"require": {
2020-01-29 21:47:16 +00:00
"package/found": "2.*",
"package/found3": "2.*",
"package/found4": "2.*",
"package/found5": "2.*",
"package/found6": "2.*",
"package/found7": "2.*",
2020-03-12 14:30:20 +00:00
"missing/provided-api": "2.*",
2020-01-29 21:47:16 +00:00
"conflict/requirer": "2.*",
"conflict/requirer2": "2.*",
2016-03-31 23:37:06 +00:00
"unstable/package": "2.*",
2020-01-29 21:47:16 +00:00
"non-existent/pkg": "1.*",
2019-01-29 12:27:52 +00:00
"requirer/pkg": "1.*",
"dependency/pkg": "2.*",
2020-01-29 21:47:16 +00:00
"stable-requiree-excluded/pkg": "1.0.1",
"lib-xml": "1002.*",
"lib-icu": "1001.*",
"ext-xml": "1002.*",
"php": "1"
2016-03-31 23:37:06 +00:00
}
}
2016-04-18 22:03:00 +00:00
--INSTALLED--
[
2020-01-29 21:47:16 +00:00
{ "name": "stable-requiree-excluded/pkg", "version": "1.0.0" },
{ "name": "stable-requiree-excluded/pkg2", "version": "1.0.0" }
2016-04-18 22:03:00 +00:00
]
2019-09-07 07:18:54 +00:00
--LOCK--
{
"packages": [
2020-01-29 21:47:16 +00:00
{ "name": "stable-requiree-excluded/pkg", "version": "1.0.0" },
{ "name": "stable-requiree-excluded/pkg2", "version": "1.0.0" }
2019-09-07 07:18:54 +00:00
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}
2016-03-31 23:37:06 +00:00
--RUN--
2020-01-29 21:47:16 +00:00
update unstable/package requirer/pkg dependency/pkg conflict/requirer
2016-03-31 23:37:06 +00:00
--EXPECT-EXIT-CODE--
2
--EXPECT-OUTPUT--
Loading composer repositories with package information
2019-09-07 07:18:54 +00:00
Updating dependencies
2016-03-31 23:37:06 +00:00
Your requirements could not be resolved to an installable set of packages.
Problem 1
2020-03-12 14:30:20 +00:00
- Root composer.json requires missing/provided-api 2.*, it could not be found in any version, but the following packages provide it:
- api/provider Provides the missing API
Consider requiring one of these to satisfy the missing/provided-api requirement.
2016-03-31 23:37:06 +00:00
Problem 2
2020-03-12 14:30:20 +00:00
- Root composer.json requires unstable/package 2.*, found unstable/package[2.0.0-alpha] but it does not match your minimum-stability.
2016-03-31 23:37:06 +00:00
Problem 3
2020-03-12 14:30:20 +00:00
- Root composer.json requires non-existent/pkg, it could not be found in any version, there may be a typo in the package name.
2020-01-17 13:01:01 +00:00
Problem 4
2020-03-27 21:15:04 +00:00
- Root composer.json requires stable-requiree-excluded/pkg 1.0.1, found stable-requiree-excluded/pkg[1.0.1] but the package is fixed to 1.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
2020-01-29 21:47:16 +00:00
Problem 5
2020-03-12 14:30:20 +00:00
- Root composer.json requires linked library lib-xml 1002.* but it has the wrong version installed or is missing from your system, make sure to load the extension providing it.
2020-01-29 21:47:16 +00:00
Problem 6
2020-03-12 14:30:20 +00:00
- Root composer.json requires linked library lib-icu 1001.* but it has the wrong version installed, try upgrading the intl extension.
2020-01-29 21:47:16 +00:00
Problem 7
2020-03-12 14:30:20 +00:00
- Root composer.json requires PHP extension ext-xml 1002.* but it has the wrong version (%s) installed. Install or enable PHP's xml extension.
2020-01-29 21:47:16 +00:00
Problem 8
2020-03-12 14:30:20 +00:00
- Root composer.json requires php 1 but your php version (%s) does not satisfy that requirement.
Problem 9
2020-01-29 21:47:16 +00:00
- Root composer.json requires package/found 2.* -> satisfiable by package/found[2.0.0].
- package/found 2.0.0 requires unstable/package2 2.* -> found unstable/package2[2.0.0-alpha] but it does not match your minimum-stability.
2020-03-12 14:30:20 +00:00
Problem 10
2020-01-29 21:47:16 +00:00
- Root composer.json requires package/found3 2.* -> satisfiable by package/found3[2.0.0].
- package/found3 2.0.0 requires unstable/package2 2.* -> found unstable/package2[2.0.0-alpha] but it does not match your minimum-stability.
2021-11-25 11:33:59 +00:00
Problem 11
2020-01-29 21:47:16 +00:00
- Root composer.json requires package/found4 2.* -> satisfiable by package/found4[2.0.0].
- package/found4 2.0.0 requires non-existent/pkg2 1.* -> could not be found in any version, there may be a typo in the package name.
2021-11-25 11:33:59 +00:00
Problem 12
2020-01-29 21:47:16 +00:00
- Root composer.json requires package/found6 2.* -> satisfiable by package/found6[2.0.0].
2020-04-23 11:17:22 +00:00
- package/found6 2.0.0 requires stable-requiree-excluded/pkg2 1.0.1 -> found stable-requiree-excluded/pkg2[1.0.0] but it does not match the constraint.
2021-11-25 11:33:59 +00:00
Problem 13
2020-01-29 21:47:16 +00:00
- Root composer.json requires package/found7 2.* -> satisfiable by package/found7[2.0.0].
- package/found7 2.0.0 requires php-64bit 1.0.1 -> your php-64bit version (%s) does not satisfy that requirement.
2021-11-25 11:33:59 +00:00
Problem 14
2020-01-19 22:11:36 +00:00
- Root composer.json requires requirer/pkg 1.* -> satisfiable by requirer/pkg[1.0.0].
2020-01-29 21:47:16 +00:00
- requirer/pkg 1.0.0 requires dependency/pkg 1.0.0 -> found dependency/pkg[1.0.0] but it conflicts with your root composer.json require (2.*).
2021-11-25 11:33:59 +00:00
Problem 15
2020-01-29 21:47:16 +00:00
- requirer/pkg 1.0.0 requires dependency/pkg 1.0.0 -> found dependency/pkg[1.0.0] but it conflicts with your root composer.json require (2.*).
- package/found5 2.0.0 requires requirer/pkg 1.* -> satisfiable by requirer/pkg[1.0.0].
- Root composer.json requires package/found5 2.* -> satisfiable by package/found5[2.0.0].
2016-03-31 23:37:06 +00:00
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
2017-11-16 11:41:41 +00:00
- It's a private package and you forgot to add a custom repository to find it
2016-03-31 23:37:06 +00:00
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
2020-05-19 10:17:25 +00:00
To enable extensions, verify that they are enabled in your .ini files:
2020-01-29 21:47:16 +00:00
__inilist__
2021-11-26 09:13:49 +00:00
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
2021-11-26 09:39:07 +00:00
Alternatively, you can run Composer with `--ignore-platform-req=ext-xml` to temporarily ignore these required extensions.
2020-05-19 10:17:25 +00:00
2020-10-18 11:13:44 +00:00
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
2016-03-31 23:37:06 +00:00
--EXPECT--