2020-04-29 22:04:55 +00:00
|
|
|
--TEST--
|
|
|
|
Partially updating one root requirement with transitive deps fully updates another one too.
|
|
|
|
|
|
|
|
--REQUEST--
|
|
|
|
{
|
|
|
|
"require": {
|
|
|
|
"root/update": "*",
|
2020-06-06 15:18:42 +00:00
|
|
|
"root/dep": "1.0.*",
|
|
|
|
"root/dep2": "*"
|
2020-04-29 22:04:55 +00:00
|
|
|
},
|
|
|
|
"locked": [
|
2020-06-06 13:19:55 +00:00
|
|
|
{"name": "root/update", "version": "1.0.1", "require": {"dep/dep": "1.*"}},
|
2020-06-06 15:18:42 +00:00
|
|
|
{"name": "dep/dep", "version": "1.0.2", "require": {"root/dep": "1.*", "root/dep2": "1.*"}},
|
|
|
|
{"name": "root/dep", "version": "1.0.3"},
|
|
|
|
{"name": "root/dep2", "version": "1.0.3"}
|
2020-04-29 22:04:55 +00:00
|
|
|
],
|
|
|
|
"allowList": [
|
|
|
|
"root/update"
|
|
|
|
],
|
|
|
|
"allowTransitiveDeps": true
|
|
|
|
}
|
|
|
|
|
|
|
|
--FIXED--
|
|
|
|
[
|
|
|
|
]
|
|
|
|
|
|
|
|
--PACKAGES--
|
|
|
|
[
|
|
|
|
{"name": "root/update", "version": "1.0.4", "require": {"dep/dep": "1.*"}},
|
|
|
|
{"name": "root/update", "version": "1.0.5", "require": {"dep/dep": "2.*"}},
|
|
|
|
{"name": "root/dep", "version": "1.0.6"},
|
|
|
|
{"name": "root/dep", "version": "2.0.7"},
|
2020-06-06 15:18:42 +00:00
|
|
|
{"name": "root/dep2", "version": "1.0.6"},
|
|
|
|
{"name": "root/dep2", "version": "2.0.7"},
|
|
|
|
{"name": "dep/dep", "version": "1.0.8", "require": {"root/dep": "1.*", "root/dep2": "1.*"}},
|
|
|
|
{"name": "dep/dep", "version": "2.0.9", "require": {"root/dep": "2.*", "root/dep2": "2.*"}}
|
2020-04-29 22:04:55 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
--EXPECT--
|
|
|
|
[
|
|
|
|
"root/update-1.0.4.0",
|
|
|
|
"root/update-1.0.5.0",
|
|
|
|
"dep/dep-1.0.8.0",
|
|
|
|
"dep/dep-2.0.9.0",
|
|
|
|
"root/dep-1.0.6.0",
|
2020-06-06 15:18:42 +00:00
|
|
|
"root/dep2-1.0.6.0",
|
|
|
|
"root/dep2-2.0.7.0"
|
2020-04-29 22:04:55 +00:00
|
|
|
]
|