2016-03-31 23:37:06 +00:00
--TEST--
Test the error output of solver problems.
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "name": "unstable/package", "version": "2.0.0-alpha" },
{ "name": "unstable/package", "version": "1.0.0" },
{ "name": "requirer", "version": "1.0.0", "require": {"dependency": "1.0.0" } },
{ "name": "dependency", "version": "2.0.0" },
2016-04-18 22:03:00 +00:00
{ "name": "dependency", "version": "1.0.0" },
{ "name": "stable-requiree-excluded", "version": "1.0.1" },
{ "name": "stable-requiree-excluded", "version": "1.0.0" }
2016-03-31 23:37:06 +00:00
]
}
],
"require": {
"unstable/package": "2.*",
"bogus": "1.*",
"requirer": "1.*",
2016-04-18 22:03:00 +00:00
"dependency": "2.*",
"stable-requiree-excluded": "1.0.1"
2016-03-31 23:37:06 +00:00
}
}
2016-04-18 22:03:00 +00:00
--INSTALLED--
[
{ "name": "stable-requiree-excluded", "version": "1.0.0" }
]
2016-03-31 23:37:06 +00:00
--RUN--
2016-04-18 22:03:00 +00:00
update unstable/package requirer dependency
2016-03-31 23:37:06 +00:00
--EXPECT-EXIT-CODE--
2
--EXPECT-OUTPUT--
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
2016-04-18 22:03:00 +00:00
- The requested package unstable/package 2.* exists as unstable/package[1.0.0] but these are rejected by your constraint.
2016-03-31 23:37:06 +00:00
Problem 2
- The requested package bogus could not be found in any version, there may be a typo in the package name.
Problem 3
2016-04-18 22:03:00 +00:00
- The requested package stable-requiree-excluded (installed at 1.0.0, required as 1.0.1) is satisfiable by stable-requiree-excluded[1.0.0] but these conflict with your requirements or minimum-stability.
Problem 4
2016-03-31 23:37:06 +00:00
- Installation request for requirer 1.* -> satisfiable by requirer[1.0.0].
2016-04-18 22:03:00 +00:00
- requirer 1.0.0 requires dependency 1.0.0 -> satisfiable by dependency[1.0.0] but these conflict with your requirements or minimum-stability.
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.
--EXPECT--