2012-07-01 16:28:33 +00:00
|
|
|
--TEST--
|
2012-08-24 10:06:29 +00:00
|
|
|
Update aliased package does not mess up the lock file
|
2012-07-01 16:28:33 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "master", "type": "git", "url": "" }
|
|
|
|
}
|
|
|
|
]
|
2012-08-24 10:06:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "lowpriomaster", "type": "git", "url": "" }
|
|
|
|
}
|
|
|
|
]
|
2012-07-01 16:28:33 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "1.*"
|
|
|
|
},
|
2012-08-24 10:06:29 +00:00
|
|
|
"minimum-stability": "dev"
|
2012-07-01 16:28:33 +00:00
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "package": "a/a", "version": "dev-master", "source-reference": "1234" },
|
|
|
|
{ "package": "a/a", "version": "dev-master", "alias-pretty-version": "1.0.x-dev", "alias-version": "1.0.9999999.9999999-dev" }
|
|
|
|
],
|
|
|
|
"packages-dev": null,
|
|
|
|
"aliases": [],
|
2012-08-24 10:06:29 +00:00
|
|
|
"minimum-stability": "dev",
|
2012-07-01 16:28:33 +00:00
|
|
|
"stability-flags": []
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "1234", "type": "git", "url": "" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
2012-09-14 14:43:56 +00:00
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "master", "type": "git", "url": "" },
|
|
|
|
"type": "library"
|
|
|
|
}
|
2012-07-01 16:28:33 +00:00
|
|
|
],
|
|
|
|
"packages-dev": null,
|
|
|
|
"aliases": [],
|
2012-08-24 10:06:29 +00:00
|
|
|
"minimum-stability": "dev",
|
2012-07-01 16:28:33 +00:00
|
|
|
"stability-flags": []
|
|
|
|
}
|
|
|
|
--EXPECT--
|
|
|
|
Updating a/a (dev-master 1234) to a/a (dev-master master)
|