2020-08-25 09:05:28 +00:00
|
|
|
--TEST--
|
|
|
|
Partial update from lock file with root aliases should work
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "a/dep", "version": "1.0.0", "require": { "c/aliased": "2.0.0" } },
|
|
|
|
{ "name": "b/dep", "version": "1.0.0", "require": { "c/aliased": "1.0.0" } },
|
|
|
|
{ "name": "c/aliased", "version": "1.0.0" },
|
|
|
|
{ "name": "c/aliased", "version": "2.0.0" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/dep": "*",
|
|
|
|
"b/dep": "*",
|
|
|
|
"c/aliased": "1.0.0 as 2.0.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "a/dep", "version": "1.0.0", "require": { "c/aliased": "2.0.0" } },
|
|
|
|
{ "name": "b/dep", "version": "1.0.0", "require": { "c/aliased": "1.0.0" } },
|
|
|
|
{ "name": "c/aliased", "version": "1.0.0" }
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [
|
|
|
|
{
|
|
|
|
"package": "c/aliased",
|
|
|
|
"version": "1.0.0.0",
|
|
|
|
"alias": "2.0.0",
|
|
|
|
"alias_normalized": "2.0.0.0"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"minimum-stability": "stable",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2020-08-25 09:05:28 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2020-08-25 09:05:28 +00:00
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "a/dep", "version": "1.0.0", "require": { "c/aliased": "2.0.0" } },
|
|
|
|
{ "name": "b/dep", "version": "1.0.0", "require": { "c/aliased": "1.0.0" } },
|
|
|
|
{ "name": "c/aliased", "version": "1.0.0" }
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update --lock
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "a/dep", "version": "1.0.0", "require": { "c/aliased": "2.0.0" }, "type": "library" },
|
|
|
|
{ "name": "b/dep", "version": "1.0.0", "require": { "c/aliased": "1.0.0" }, "type": "library" },
|
|
|
|
{ "name": "c/aliased", "version": "1.0.0", "type": "library" }
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [
|
|
|
|
{
|
|
|
|
"package": "c/aliased",
|
|
|
|
"version": "1.0.0.0",
|
|
|
|
"alias": "2.0.0",
|
|
|
|
"alias_normalized": "2.0.0.0"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"minimum-stability": "stable",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2020-08-25 09:05:28 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2020-08-25 09:05:28 +00:00
|
|
|
}
|
|
|
|
--EXPECT--
|
|
|
|
Marking c/aliased (2.0.0) as installed, alias of c/aliased (1.0.0)
|