2020-04-21 21:01:20 +00:00
|
|
|
--TEST--
|
2020-11-12 16:05:50 +00:00
|
|
|
Root-defined aliases end up in lock file always on full update
|
2020-04-21 21:01:20 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/aliased", "version": "3.0.2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/aliased2", "version": "3.0.2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "b/requirer", "version": "1.0.0",
|
|
|
|
"require": { "a/aliased": "^3.0.3", "a/aliased2": "^3.0.0" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/aliased": "3.0.2 as 3.0.3",
|
|
|
|
"a/aliased2": "3.0.2 as 3.0.3",
|
|
|
|
"b/requirer": "*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--RUN--
|
|
|
|
update
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "a/aliased", "version": "3.0.2",
|
|
|
|
"type": "library"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/aliased2", "version": "3.0.2",
|
|
|
|
"type": "library"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "b/requirer", "version": "1.0.0",
|
|
|
|
"require": { "a/aliased": "^3.0.3", "a/aliased2": "^3.0.0" },
|
|
|
|
"type": "library"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [{
|
|
|
|
"package": "a/aliased",
|
|
|
|
"version": "3.0.2.0",
|
|
|
|
"alias": "3.0.3",
|
|
|
|
"alias_normalized": "3.0.3.0"
|
2020-11-12 16:05:50 +00:00
|
|
|
},{
|
|
|
|
"package": "a/aliased2",
|
|
|
|
"version": "3.0.2.0",
|
|
|
|
"alias": "3.0.3",
|
|
|
|
"alias_normalized": "3.0.3.0"
|
2020-04-21 21:01:20 +00:00
|
|
|
}],
|
|
|
|
"minimum-stability": "stable",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2020-04-21 21:01:20 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2020-04-21 21:01:20 +00:00
|
|
|
}
|
|
|
|
--EXPECT--
|
|
|
|
Installing a/aliased2 (3.0.2)
|
2020-11-12 16:05:50 +00:00
|
|
|
Marking a/aliased2 (3.0.3) as installed, alias of a/aliased2 (3.0.2)
|
2020-04-21 21:01:20 +00:00
|
|
|
Installing a/aliased (3.0.2)
|
|
|
|
Marking a/aliased (3.0.3) as installed, alias of a/aliased (3.0.2)
|
|
|
|
Installing b/requirer (1.0.0)
|