2020-03-27 22:07:02 +00:00
--TEST--
When partially updating a package to a newer version and the new version has a new requirement for a package we already have installed, mark it for update
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "name": "root/pkg1", "version": "1.0.0", "require": { "current/dep": "^1.0" } },
{ "name": "root/pkg1", "version": "1.2.0", "require": { "current/dep": "^1.0" } },
{ "name": "current/dep", "version": "1.0.0" },
{ "name": "current/dep", "version": "1.2.0" },
{ "name": "root/pkg2", "version": "1.0.0" },
{ "name": "root/pkg2", "version": "1.2.0", "require": { "current/dep": "^1.2" } }
]
}
],
"require": {
"root/pkg1": "1.*",
"root/pkg2": "1.*"
}
}
--INSTALLED--
[
{ "name": "root/pkg1", "version": "1.0.0", "require": { "current/dep": "^1.0" } },
{ "name": "current/dep", "version": "1.0.0" },
{ "name": "root/pkg2", "version": "1.0.0" }
]
--LOCK--
{
"packages": [
{ "name": "root/pkg1", "version": "1.0.0", "require": { "current/dep": "^1.0" } },
{ "name": "current/dep", "version": "1.0.0" },
{ "name": "root/pkg2", "version": "1.0.0" }
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
2024-09-18 14:32:40 +00:00
"stability-flags": {},
2020-03-27 22:07:02 +00:00
"prefer-stable": false,
"prefer-lowest": false,
2024-09-18 14:32:40 +00:00
"platform": {},
"platform-dev": {}
2020-03-27 22:07:02 +00:00
}
--RUN--
update root/pkg2 --with-dependencies
--EXPECT--
Upgrading current/dep (1.0.0 => 1.2.0)
Upgrading root/pkg2 (1.0.0 => 1.2.0)