2013-01-07 19:27:52 +00:00
|
|
|
--TEST--
|
|
|
|
Updating a dev package for new reference updates the url and reference
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"source": { "reference": "newref", "url": "newurl", "type": "git" },
|
|
|
|
"dist": { "reference": "newref", "url": "newurl", "type": "zip", "shasum": "" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"minimum-stability": "dev",
|
|
|
|
"require": {
|
|
|
|
"a/a": "dev-master"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"source": { "reference": "oldref", "url": "oldurl", "type": "git" },
|
|
|
|
"dist": { "reference": "oldref", "url": "oldurl", "type": "zip", "shasum": "" }
|
|
|
|
}
|
|
|
|
],
|
2019-10-29 23:40:36 +00:00
|
|
|
"packages-dev": [],
|
2013-01-07 19:27:52 +00:00
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
2014-07-07 17:51:00 +00:00
|
|
|
"stability-flags": {"a/a":20},
|
2014-12-13 22:56:15 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false
|
2013-01-07 19:27:52 +00:00
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"source": { "reference": "oldref", "url": "oldurl", "type": "git" },
|
|
|
|
"dist": { "reference": "oldref", "url": "oldurl", "type": "zip", "shasum": "" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "dev-master",
|
|
|
|
"type": "library",
|
|
|
|
"source": { "reference": "newref", "url": "newurl", "type": "git" },
|
|
|
|
"dist": { "reference": "newref", "url": "newurl", "type": "zip", "shasum": "" }
|
|
|
|
}
|
|
|
|
],
|
2013-03-07 08:40:22 +00:00
|
|
|
"packages-dev": [],
|
2013-01-07 19:27:52 +00:00
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
2013-03-03 19:05:46 +00:00
|
|
|
"stability-flags": {"a/a":20},
|
2014-07-07 17:51:00 +00:00
|
|
|
"prefer-stable": false,
|
2014-12-13 22:56:15 +00:00
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2013-01-07 19:27:52 +00:00
|
|
|
}
|
|
|
|
--EXPECT--
|
2020-02-11 12:43:38 +00:00
|
|
|
Upgrading a/a (dev-master oldref => dev-master newref)
|