2012-11-22 21:47:19 +00:00
|
|
|
--TEST--
|
|
|
|
Updating a dev package to its latest ref should pick up new dependencies
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{
|
2020-06-19 13:35:09 +00:00
|
|
|
"name": "a/devpackage", "version": "dev-main",
|
2022-10-11 14:51:47 +00:00
|
|
|
"source": { "reference": "newref", "url": "https://example.org", "type": "git" },
|
2012-11-22 21:47:19 +00:00
|
|
|
"require": {
|
|
|
|
"a/dependency": "*"
|
2020-06-19 13:35:09 +00:00
|
|
|
},
|
|
|
|
"default-branch": true
|
2012-11-22 21:47:19 +00:00
|
|
|
},
|
|
|
|
{
|
2020-06-19 13:35:09 +00:00
|
|
|
"name": "a/dependency", "version": "dev-main",
|
2022-10-11 14:51:47 +00:00
|
|
|
"source": { "reference": "ref", "url": "https://example.org", "type": "git" },
|
2020-06-19 13:35:09 +00:00
|
|
|
"require": {},
|
|
|
|
"default-branch": true
|
2012-11-22 21:47:19 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
2020-06-19 13:35:09 +00:00
|
|
|
"a/devpackage": "dev-main"
|
2012-11-22 21:47:19 +00:00
|
|
|
},
|
|
|
|
"minimum-stability": "dev"
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{
|
2020-06-19 13:35:09 +00:00
|
|
|
"name": "a/devpackage", "version": "dev-main",
|
2022-10-11 14:51:47 +00:00
|
|
|
"source": { "reference": "oldref", "url": "https://example.org", "type": "git" },
|
2020-06-19 13:35:09 +00:00
|
|
|
"require": {},
|
|
|
|
"default-branch": true
|
2012-11-22 21:47:19 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update
|
|
|
|
--EXPECT--
|
2020-06-19 13:35:09 +00:00
|
|
|
Installing a/dependency (dev-main ref)
|
|
|
|
Marking a/dependency (9999999-dev ref) as installed, alias of a/dependency (dev-main ref)
|
|
|
|
Upgrading a/devpackage (dev-main oldref => dev-main newref)
|