2020-09-01 10:07:12 +00:00
|
|
|
--TEST--
|
2021-11-23 11:58:59 +00:00
|
|
|
Check that replacers from additional repositories are loaded when doing a partial update allowing all transitive deps
|
2020-09-01 10:07:12 +00:00
|
|
|
|
|
|
|
--REQUEST--
|
|
|
|
{
|
|
|
|
"require": {
|
|
|
|
"base/package": "^1.0",
|
|
|
|
"indirect/replacer": "^1.0"
|
|
|
|
},
|
|
|
|
"locked": [
|
|
|
|
{"name": "shared/dep", "version": "1.2.0", "id": 1},
|
|
|
|
{"name": "indirect/replacer", "version": "1.2.0", "require": {"replacer/package": "^1.2"}, "id": 2},
|
|
|
|
{"name": "replacer/package", "version": "1.2.0", "require": {"shared/dep": "^1.1"}, "replace": {"base/package": "1.2.0"}, "id": 3}
|
|
|
|
],
|
|
|
|
"allowList": [
|
|
|
|
"indirect/replacer"
|
|
|
|
],
|
2021-11-23 11:58:59 +00:00
|
|
|
"allowTransitiveDeps": true
|
2020-09-01 10:07:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
--FIXED--
|
|
|
|
[
|
|
|
|
]
|
|
|
|
|
|
|
|
--PACKAGE-REPOS--
|
|
|
|
[
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "base/package",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"require": {
|
|
|
|
"shared/dep": "^1.2"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "shared/dep",
|
|
|
|
"version": "1.0.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "shared/dep",
|
|
|
|
"version": "1.2.0"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "base/package",
|
|
|
|
"version": "1.1.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "shared/dep",
|
|
|
|
"version": "1.3.0"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
{
|
|
|
|
"canonical": false,
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "indirect/replacer",
|
|
|
|
"version": "1.2.0",
|
|
|
|
"require": {
|
|
|
|
"replacer/package": "^1.2"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "replacer/package",
|
|
|
|
"version": "1.2.0",
|
|
|
|
"require": {
|
|
|
|
"shared/dep": "^1.1"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "shared/dep",
|
|
|
|
"version": "1.1.0"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "replacer/package",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"require": {
|
|
|
|
"shared/dep": "^1.0"
|
|
|
|
},
|
|
|
|
"replace": {
|
|
|
|
"base/package": "1.0.0"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "indirect/replacer",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"require": {
|
|
|
|
"replacer/package": "^1.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
--EXPECT--
|
|
|
|
[
|
2023-09-13 08:42:47 +00:00
|
|
|
"base/package-1.0.0.0",
|
2020-09-01 10:07:12 +00:00
|
|
|
"indirect/replacer-1.2.0.0",
|
|
|
|
"indirect/replacer-1.0.0.0",
|
|
|
|
"replacer/package-1.2.0.0",
|
|
|
|
"replacer/package-1.0.0.0",
|
|
|
|
"shared/dep-1.0.0.0",
|
|
|
|
"shared/dep-1.2.0.0"
|
|
|
|
]
|
2020-10-01 14:42:02 +00:00
|
|
|
|
|
|
|
--EXPECT-OPTIMIZED--
|
|
|
|
[
|
2023-09-13 08:42:47 +00:00
|
|
|
"base/package-1.0.0.0",
|
2020-10-01 14:42:02 +00:00
|
|
|
"indirect/replacer-1.2.0.0",
|
|
|
|
"indirect/replacer-1.0.0.0",
|
|
|
|
"replacer/package-1.2.0.0",
|
|
|
|
"replacer/package-1.0.0.0",
|
|
|
|
"shared/dep-1.2.0.0"
|
|
|
|
]
|