123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- --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"},
- {"name": "b/b", "version": "v1.1.4"},
- {"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"},
- {"name": "b/b", "version": "1.1.0"},
- {"name": "b/b", "version": "2.0.5"},
- {"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"},
- {"name": "b/b", "version": "1.2.1"},
- {"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.
- Use the option --with-all-dependencies to allow upgrades, downgrades and removals for packages currently locked to specific versions.
- --EXPECT--
|