2017-09-11 15:16:15 +00:00
|
|
|
--TEST--
|
|
|
|
|
2024-10-02 10:28:32 +00:00
|
|
|
See GitHub issue #6661 ( github.com/composer/composer/issues/6661 ).
|
2017-09-11 15:16:15 +00:00
|
|
|
|
2020-06-17 07:24:25 +00:00
|
|
|
When `--with-all-dependencies` is used, Composer should update the dependencies of all allowed packages, even if the dependency is a root requirement.
|
2017-09-11 15:16:15 +00:00
|
|
|
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
2019-01-29 12:27:52 +00:00
|
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
|
|
{ "name": "a/a", "version": "1.1.0" },
|
|
|
|
{ "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } },
|
|
|
|
{ "name": "b/b", "version": "1.1.0", "require": { "a/a": "~1.1" } }
|
2017-09-11 15:16:15 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
2019-01-29 12:27:52 +00:00
|
|
|
"a/a": "~1.0",
|
|
|
|
"b/b": "~1.0"
|
2017-09-11 15:16:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
2019-01-29 12:27:52 +00:00
|
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
|
|
{ "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } }
|
2017-09-11 15:16:15 +00:00
|
|
|
]
|
2019-09-07 07:18:54 +00:00
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
|
|
{ "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } }
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2019-09-07 07:18:54 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2019-09-07 07:18:54 +00:00
|
|
|
}
|
2017-09-11 15:16:15 +00:00
|
|
|
--RUN--
|
2019-01-29 12:27:52 +00:00
|
|
|
update b/b --with-all-dependencies
|
2017-09-11 15:16:15 +00:00
|
|
|
|
|
|
|
--EXPECT-OUTPUT--
|
|
|
|
Loading composer repositories with package information
|
2019-09-07 07:18:54 +00:00
|
|
|
Updating dependencies
|
|
|
|
Lock file operations: 0 installs, 2 updates, 0 removals
|
2020-02-11 12:43:38 +00:00
|
|
|
- Upgrading a/a (1.0.0 => 1.1.0)
|
|
|
|
- Upgrading b/b (1.0.0 => 1.1.0)
|
2017-09-11 15:16:15 +00:00
|
|
|
Writing lock file
|
2019-09-07 07:18:54 +00:00
|
|
|
Installing dependencies from lock file (including require-dev)
|
|
|
|
Package operations: 0 installs, 2 updates, 0 removals
|
2017-09-11 15:16:15 +00:00
|
|
|
Generating autoload files
|
|
|
|
|
|
|
|
--EXPECT--
|
2020-02-11 12:43:38 +00:00
|
|
|
Upgrading a/a (1.0.0 => 1.1.0)
|
|
|
|
Upgrading b/b (1.0.0 => 1.1.0)
|