2014-02-21 12:14:36 +00:00
|
|
|
--TEST--
|
|
|
|
Broken dependencies should not lead to a replacer being installed which is not mentioned by name
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
|
|
{ "name": "b/b", "version": "1.0.0", "require": {"c/c": "1.*"} },
|
|
|
|
{ "name": "c/c", "version": "1.0.0", "replace": {"a/a": "1.0.0" },"require":{"x/x": "1.0"}},
|
|
|
|
{ "name": "d/d", "version": "1.0.0", "replace": {"a/a": "1.0.0", "c/c":"1.0.0" }}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "1.*",
|
|
|
|
"b/b": "1.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--RUN--
|
2019-11-08 11:31:26 +00:00
|
|
|
update
|
2014-05-23 13:22:53 +00:00
|
|
|
--EXPECT-OUTPUT--
|
2016-01-28 13:41:19 +00:00
|
|
|
Loading composer repositories with package information
|
2019-09-07 00:28:40 +00:00
|
|
|
Updating dependencies
|
2016-01-28 13:41:19 +00:00
|
|
|
Your requirements could not be resolved to an installable set of packages.
|
2014-05-23 13:22:53 +00:00
|
|
|
|
|
|
|
Problem 1
|
2020-01-19 22:11:36 +00:00
|
|
|
- Root composer.json requires b/b 1.* -> satisfiable by b/b[1.0.0].
|
2024-09-17 12:13:58 +00:00
|
|
|
- b/b 1.0.0 requires c/c 1.* -> satisfiable by c/c[1.0.0].
|
|
|
|
- c/c 1.0.0 requires x/x 1.0 -> could not be found in any version, there may be a typo in the package name.
|
2014-05-23 13:22:53 +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
|
2016-01-29 02:12:51 +00:00
|
|
|
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
|
2014-05-23 13:22:53 +00:00
|
|
|
|
2015-05-04 17:37:57 +00:00
|
|
|
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
|
2014-05-23 13:22:53 +00:00
|
|
|
|
2014-02-21 12:14:36 +00:00
|
|
|
--EXPECT-EXIT-CODE--
|
|
|
|
2
|
|
|
|
--EXPECT--
|