2020-04-14 22:58:35 +00:00
--TEST--
Test the error output minifies version lists
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{"name": "a/a", "version": "1.0.0", "require": {"b/b": "1.0.0"}},
{"name": "b/b", "version": "1.0.0"},
{"name": "b/b", "version": "1.0.1"},
{"name": "b/b", "version": "1.0.2"},
{"name": "b/b", "version": "1.0.3"},
2020-04-19 13:51:13 +00:00
{"name": "b/b", "version": "v1.1.4"},
2020-04-14 22:58:35 +00:00
{"name": "b/b", "version": "1.0.4"},
{"name": "b/b", "version": "1.0.5"},
{"name": "b/b", "version": "1.0.6"},
{"name": "b/b", "version": "1.0.7"},
2020-04-19 13:51:13 +00:00
{"name": "b/b", "version": "1.1.0"},
{"name": "b/b", "version": "2.0.5"},
2020-04-14 22:58:35 +00:00
{"name": "b/b", "version": "1.0.8"},
{"name": "b/b", "version": "1.0.9"},
{"name": "b/b", "version": "1.1.1"},
{"name": "b/b", "version": "1.1.2"},
{"name": "b/b", "version": "1.1.3"},
{"name": "b/b", "version": "1.1.5"},
{"name": "b/b", "version": "v1.1.6"},
{"name": "b/b", "version": "1.1.7-alpha"},
{"name": "b/b", "version": "1.1.8"},
{"name": "b/b", "version": "1.1.9"},
{"name": "b/b", "version": "1.2.0"},
{"name": "b/b", "version": "1.2.2"},
{"name": "b/b", "version": "1.2.3"},
{"name": "b/b", "version": "1.2.4"},
{"name": "b/b", "version": "1.2.5"},
{"name": "b/b", "version": "1.2.6"},
2020-04-19 13:51:13 +00:00
{"name": "b/b", "version": "1.2.1"},
2020-04-14 22:58:35 +00:00
{"name": "b/b", "version": "1.2.7"},
{"name": "b/b", "version": "1.2.8"},
{"name": "b/b", "version": "1.2.9"},
{"name": "b/b", "version": "2.0.0"},
{"name": "b/b", "version": "2.0.1"},
{"name": "b/b", "version": "2.0.2"},
{"name": "b/b", "version": "2.0.3"},
{"name": "b/b", "version": "2.0.4"},
{"name": "b/b", "version": "2.0.6"},
{"name": "b/b", "version": "2.0.7"},
{"name": "b/b", "version": "2.0.8"},
{"name": "b/b", "version": "2.0.9"},
{"name": "b/b", "version": "2.1.0"},
{"name": "b/b", "version": "2.1.1"},
{"name": "b/b", "version": "2.1.2"},
{"name": "b/b", "version": "2.1.3"},
{"name": "b/b", "version": "2.1.4"},
{"name": "b/b", "version": "2.1.5"},
{"name": "b/b", "version": "2.1.6"},
{"name": "b/b", "version": "2.1.7"},
{"name": "b/b", "version": "2.1.8"},
{"name": "b/b", "version": "2.1.9"},
{"name": "b/b", "version": "2.2.0"},
{"name": "b/b", "version": "2.2.1"},
{"name": "b/b", "version": "2.2.2"},
{"name": "b/b", "version": "2.2.3"},
{"name": "b/b", "version": "2.2.4"},
{"name": "b/b", "version": "2.2.5"},
{"name": "b/b", "version": "2.2.6"},
{"name": "b/b", "version": "2.2.7"},
{"name": "b/b", "version": "2.2.8"},
{"name": "b/b", "version": "2.2.9"},
{"name": "b/b", "version": "2.3.0-RC"},
{"name": "b/b", "version": "3.0.0"},
{"name": "b/b", "version": "3.0.1"},
{"name": "b/b", "version": "3.0.2"},
{"name": "b/b", "version": "3.0.3"},
{"name": "b/b", "version": "4.0.0"}
]
}
],
"require": {
"a/a": "*",
"b/b": "^1.1 || ^2.0 || ^3.0"
},
"minimum-stability": "dev"
}
--LOCK--
{
"packages": [
{"name": "b/b", "version": "1.0.0"}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}
--RUN--
update a/a
--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
- Root composer.json requires b/b ^1.1 || ^2.0 || ^3.0, found b/b[1.1.0, ..., 1.2.9, 2.0.0, ..., 2.3.0-RC, 3.0.0, 3.0.1, 3.0.2, 3.0.3] 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-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.
2020-05-19 10:17:25 +00:00
2020-04-14 22:58:35 +00:00
--EXPECT--