2020-03-13 08:50:28 +00:00
|
|
|
--TEST--
|
|
|
|
Test the error output of solver problems with dev-master aliases.
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
2020-06-19 13:35:09 +00:00
|
|
|
{"name": "a/a", "version": "dev-master", "require": {"d/d": "1.0.0"}, "default-branch": true},
|
|
|
|
{"name": "b/b", "version": "dev-master", "require": {"d/d": "2.0.0"}, "default-branch": true},
|
2020-03-13 08:50:28 +00:00
|
|
|
{"name": "d/d", "version": "1.0.0"},
|
|
|
|
{"name": "d/d", "version": "2.0.0"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "*@dev",
|
|
|
|
"b/b": "*@dev"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2020-03-13 08:50:28 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2020-03-13 08:50:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
--RUN--
|
|
|
|
update a/a b/b
|
|
|
|
|
|
|
|
--EXPECT-EXIT-CODE--
|
|
|
|
2
|
|
|
|
|
|
|
|
--EXPECT-OUTPUT--
|
|
|
|
Loading composer repositories with package information
|
|
|
|
Updating dependencies
|
|
|
|
Your requirements could not be resolved to an installable set of packages.
|
|
|
|
|
|
|
|
Problem 1
|
2024-09-17 12:13:58 +00:00
|
|
|
- Root composer.json requires a/a *@dev -> satisfiable by a/a[dev-master].
|
2020-03-13 08:50:28 +00:00
|
|
|
- Root composer.json requires b/b *@dev -> satisfiable by b/b[dev-master].
|
|
|
|
- a/a dev-master requires d/d 1.0.0 -> satisfiable by d/d[1.0.0].
|
2020-06-02 11:44:56 +00:00
|
|
|
- b/b dev-master requires d/d 2.0.0 -> satisfiable by d/d[2.0.0].
|
2020-10-21 12:08:12 +00:00
|
|
|
- Conclusion: install b/b dev-master (conflict analysis result)
|
2024-09-17 12:13:58 +00:00
|
|
|
- You can only install one version of a package, so only one of these can be installed: d/d[1.0.0, 2.0.0].
|
2020-03-13 08:50:28 +00:00
|
|
|
|
|
|
|
--EXPECT--
|