2013-02-28 09:51:21 +00:00
|
|
|
--TEST--
|
|
|
|
Aliases of referenced packages work
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/aliased", "version": "dev-master",
|
2020-06-19 13:35:09 +00:00
|
|
|
"source": { "reference": "orig", "type": "git", "url": "" },
|
|
|
|
"default-branch": true
|
2013-02-28 09:51:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "b/requirer", "version": "1.0.0",
|
|
|
|
"require": { "a/aliased": "1.0.0" },
|
|
|
|
"source": { "reference": "1.0.0", "type": "git", "url": "" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/aliased": "dev-master#abcd as 1.0.0",
|
|
|
|
"b/requirer": "*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--RUN--
|
2020-04-21 21:01:20 +00:00
|
|
|
update
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "a/aliased", "version": "dev-master",
|
|
|
|
"source": { "reference": "abcd", "type": "git", "url": "" },
|
2020-06-19 13:35:09 +00:00
|
|
|
"type": "library",
|
|
|
|
"default-branch": true
|
2020-04-21 21:01:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "b/requirer", "version": "1.0.0",
|
|
|
|
"require": { "a/aliased": "1.0.0" },
|
|
|
|
"source": { "reference": "1.0.0", "type": "git", "url": "" },
|
|
|
|
"type": "library"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [{
|
|
|
|
"package": "a/aliased",
|
2020-10-27 19:50:26 +00:00
|
|
|
"version": "9999999-dev",
|
2020-04-21 21:01:20 +00:00
|
|
|
"alias": "1.0.0",
|
|
|
|
"alias_normalized": "1.0.0.0"
|
|
|
|
}],
|
|
|
|
"minimum-stability": "stable",
|
|
|
|
"stability-flags": {
|
|
|
|
"a/aliased": 20
|
|
|
|
},
|
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
|
|
|
}
|
2013-02-28 09:51:21 +00:00
|
|
|
--EXPECT--
|
|
|
|
Installing a/aliased (dev-master abcd)
|
|
|
|
Marking a/aliased (1.0.0) as installed, alias of a/aliased (dev-master abcd)
|
2020-03-11 12:37:39 +00:00
|
|
|
Marking a/aliased (9999999-dev abcd) as installed, alias of a/aliased (dev-master abcd)
|
2013-02-28 09:51:21 +00:00
|
|
|
Installing b/requirer (1.0.0)
|