2020-04-01 14:29:24 +00:00
|
|
|
--TEST--
|
2020-04-01 23:12:34 +00:00
|
|
|
Verify that a partial update with deps correctly keeps track of all aliases.
|
2020-04-01 14:29:24 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "current/pkg", "version": "1.0.0", "require": { "current/dep": "<1.2.0" } },
|
2020-04-01 22:08:53 +00:00
|
|
|
{ "name": "current/dep", "version": "dev-master", "extra": {"branch-alias": {"dev-master": "1.0.x-dev"}}},
|
2020-04-01 14:29:24 +00:00
|
|
|
{ "name": "current/dep", "version": "1.0.0" },
|
2020-04-01 22:08:53 +00:00
|
|
|
{ "name": "current/dep", "version": "1.1.0", "require": {"current/dep2": "*"} },
|
2020-04-01 14:29:24 +00:00
|
|
|
{ "name": "current/dep", "version": "1.2.0" },
|
2020-04-01 23:12:34 +00:00
|
|
|
{ "name": "current/dep2", "version": "dev-foo", "extra": {"branch-alias": {"dev-foo": "1.0.x-dev"}}},
|
|
|
|
{ "name": "current/dep2", "version": "dev-master", "extra": {"branch-alias": {"dev-master": "2.x-dev"}}},
|
|
|
|
{ "name": "new/pkg", "version": "1.0.0", "require": { "current/dep": "^1.1", "current/dep2": "^1.1"} },
|
2020-04-01 14:29:24 +00:00
|
|
|
{ "name": "new/pkg", "version": "1.1.0", "require": { "current/dep": "^1.2" } }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
2020-04-01 22:08:53 +00:00
|
|
|
"current/dep": "dev-master as 1.1.0",
|
2020-04-01 23:12:34 +00:00
|
|
|
"current/dep2": "dev-master as 1.1.2",
|
2020-04-01 22:08:53 +00:00
|
|
|
"current/pkg": "1.0.0 as 2.0.0",
|
2020-04-01 14:29:24 +00:00
|
|
|
"new/pkg": "1.*"
|
2020-04-01 22:08:53 +00:00
|
|
|
},
|
|
|
|
"minimum-stability": "dev"
|
2020-04-01 14:29:24 +00:00
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
2020-04-01 22:08:53 +00:00
|
|
|
{ "name": "current/dep", "version": "dev-master", "extra": {"branch-alias": {"dev-master": "1.0.x-dev"}}},
|
2020-04-01 23:12:34 +00:00
|
|
|
{ "name": "current/dep2", "version": "dev-foo", "extra": {"branch-alias": {"dev-foo": "1.0.x-dev"}}},
|
2020-04-01 22:08:53 +00:00
|
|
|
{ "name": "current/pkg", "version": "1.0.0", "require": { "current/dep": "<1.2.0" } }
|
2020-04-01 14:29:24 +00:00
|
|
|
]
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
2020-04-01 22:08:53 +00:00
|
|
|
{ "name": "current/dep", "version": "dev-master", "extra": {"branch-alias": {"dev-master": "1.0.x-dev"}}, "type": "library"},
|
2020-04-01 23:12:34 +00:00
|
|
|
{ "name": "current/dep2", "version": "dev-foo", "extra": {"branch-alias": {"dev-foo": "1.0.x-dev"}}, "type": "library"},
|
2020-04-01 22:08:53 +00:00
|
|
|
{ "name": "current/pkg", "version": "1.0.0", "require": { "current/dep": "<1.2.0" } }
|
2020-04-01 14:29:24 +00:00
|
|
|
],
|
|
|
|
"packages-dev": [],
|
2020-04-01 22:08:53 +00:00
|
|
|
"aliases": [
|
|
|
|
{
|
|
|
|
"alias": "1.1.0",
|
|
|
|
"alias_normalized": "1.1.0.0",
|
2020-10-27 19:50:26 +00:00
|
|
|
"version": "9999999-dev",
|
2020-04-01 22:08:53 +00:00
|
|
|
"package": "current/dep"
|
|
|
|
}
|
|
|
|
],
|
2020-04-01 14:29:24 +00:00
|
|
|
"minimum-stability": "dev",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2020-04-01 14:29:24 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2020-04-01 14:29:24 +00:00
|
|
|
}
|
|
|
|
--RUN--
|
2020-04-01 22:08:53 +00:00
|
|
|
update new/pkg --with-all-dependencies
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "current/dep", "version": "dev-master", "extra": {"branch-alias": {"dev-master": "1.0.x-dev"}}, "type": "library"},
|
2020-04-01 23:12:34 +00:00
|
|
|
{ "name": "current/dep2", "version": "dev-master", "extra": {"branch-alias": {"dev-master": "2.x-dev"}}, "type": "library"},
|
2020-04-01 22:08:53 +00:00
|
|
|
{ "name": "current/pkg", "version": "1.0.0", "require": { "current/dep": "<1.2.0" }, "type": "library"},
|
2020-04-01 23:12:34 +00:00
|
|
|
{ "name": "new/pkg", "version": "1.0.0", "require": { "current/dep": "^1.1", "current/dep2": "^1.1"}, "type": "library"}
|
2020-04-01 22:08:53 +00:00
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [
|
|
|
|
{
|
|
|
|
"alias": "1.1.0",
|
|
|
|
"alias_normalized": "1.1.0.0",
|
2020-10-27 19:50:26 +00:00
|
|
|
"version": "9999999-dev",
|
2020-04-01 22:08:53 +00:00
|
|
|
"package": "current/dep"
|
|
|
|
},
|
|
|
|
{
|
2020-04-01 23:12:34 +00:00
|
|
|
"alias": "1.1.2",
|
|
|
|
"alias_normalized": "1.1.2.0",
|
2020-10-27 19:50:26 +00:00
|
|
|
"version": "9999999-dev",
|
2020-04-01 22:08:53 +00:00
|
|
|
"package": "current/dep2"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"minimum-stability": "dev",
|
|
|
|
"stability-flags": {
|
|
|
|
"current/dep": 20,
|
|
|
|
"current/dep2": 20
|
|
|
|
},
|
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2020-04-01 22:08:53 +00:00
|
|
|
}
|
2020-04-01 14:29:24 +00:00
|
|
|
--EXPECT--
|
2020-04-20 20:02:07 +00:00
|
|
|
Marking current/dep2 (1.0.x-dev) as uninstalled, alias of current/dep2 (dev-foo)
|
2020-04-01 22:08:53 +00:00
|
|
|
Marking current/dep (1.1.0) as installed, alias of current/dep (dev-master)
|
2020-04-01 23:12:34 +00:00
|
|
|
Upgrading current/dep2 (dev-foo => dev-master)
|
|
|
|
Marking current/dep2 (1.1.2) as installed, alias of current/dep2 (dev-master)
|
|
|
|
Marking current/dep2 (2.x-dev) as installed, alias of current/dep2 (dev-master)
|
2020-04-01 14:29:24 +00:00
|
|
|
Installing new/pkg (1.0.0)
|