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" },
|
2019-01-29 12:27:52 +00:00
|
|
|
{ "name": "requirer/pkg", "version": "1.0.0", "require": {"dependency/pkg": "1.0.0" } },
|
|
|
|
{ "name": "dependency/pkg", "version": "2.0.0" },
|
|
|
|
{ "name": "dependency/pkg", "version": "1.0.0" },
|
|
|
|
{ "name": "stable-requiree-excluded/pkg", "version": "1.0.1" },
|
|
|
|
{ "name": "stable-requiree-excluded/pkg", "version": "1.0.0" }
|
2016-03-31 23:37:06 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"unstable/package": "2.*",
|
2019-01-29 12:27:52 +00:00
|
|
|
"bogus/pkg": "1.*",
|
|
|
|
"requirer/pkg": "1.*",
|
|
|
|
"dependency/pkg": "2.*",
|
|
|
|
"stable-requiree-excluded/pkg": "1.0.1"
|
2016-03-31 23:37:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-18 22:03:00 +00:00
|
|
|
--INSTALLED--
|
|
|
|
[
|
2019-01-29 12:27:52 +00:00
|
|
|
{ "name": "stable-requiree-excluded/pkg", "version": "1.0.0" }
|
2016-04-18 22:03:00 +00:00
|
|
|
]
|
|
|
|
|
2019-09-07 07:18:54 +00:00
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "stable-requiree-excluded/pkg", "version": "1.0.0" }
|
|
|
|
],
|
|
|
|
"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--
|
2019-01-29 12:27:52 +00:00
|
|
|
update unstable/package requirer/pkg dependency/pkg
|
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
|
2018-09-12 14:32:14 +00:00
|
|
|
- The requested package unstable/package could not be found in any version, there may be a typo in the package name.
|
2016-03-31 23:37:06 +00:00
|
|
|
Problem 2
|
2019-01-29 12:27:52 +00:00
|
|
|
- The requested package bogus/pkg could not be found in any version, there may be a typo in the package name.
|
2016-03-31 23:37:06 +00:00
|
|
|
Problem 3
|
2019-01-29 12:27:52 +00:00
|
|
|
- Installation request for requirer/pkg 1.* -> satisfiable by requirer/pkg[1.0.0].
|
2019-01-29 13:01:28 +00:00
|
|
|
- requirer/pkg 1.0.0 requires dependency/pkg 1.0.0 -> no matching package found.
|
2019-10-29 21:28:36 +00:00
|
|
|
Problem 4
|
|
|
|
- stable-requiree-excluded/pkg is locked to version 1.0.0 and an update of this package was not requested.
|
2019-10-29 23:24:25 +00:00
|
|
|
- Same name, can only install one of: stable-requiree-excluded/pkg[1.0.1, 1.0.0].
|
2019-10-29 21:28:36 +00:00
|
|
|
- Installation request for stable-requiree-excluded/pkg 1.0.1 -> satisfiable by stable-requiree-excluded/pkg[1.0.1].
|
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--
|
|
|
|
|