1
0
Fork 0

Test path repo dependencies are updated in transitive partial updates (#7)

pull/10157/head
Nils Adermann 2021-11-09 15:20:11 +01:00 committed by Jordi Boggiano
parent fcda22659a
commit b8caf4b214
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
3 changed files with 103 additions and 0 deletions

View File

@ -0,0 +1,82 @@
--TEST--
Partially updating with deps a root requirement which depends on packages in a symlinked path repo should load all available versions for the path repo packages' dependencies.
--REQUEST--
{
"require": {
"root/update": "*",
"symlinked/transitive3": "*",
"symlinked/transitive5": "*"
},
"locked": [
{"name": "root/update", "version": "1.0.1", "require": {"symlinked/path-pkg": ">=1.0.1", "symlinked/replaced-pkg": "*"}},
{"name": "symlinked/transitive", "version": "1.0.0"},
{"name": "symlinked/transitive3", "version": "1.0.0", "replace": {"symlinked/transitive3-replaced": "1.0.0"}},
{
"name": "symlinked/path-pkg",
"version": "1.0.0",
"require": {
"symlinked/transitive": "1.*",
"symlinked/transitive3-replaced": "1.*",
"symlinked/transitive5-replaced": "1.*"
},
"dist": {"type": "path", "url": "./symlinked-path-repo-with-replaced-deps", "reference": "abcd"}, "transport-options": {}
},
{"name": "symlinked/transitive4", "version": "1.0.0"},
{"name": "symlinked/transitive5", "version": "1.0.0", "replace": {"symlinked/transitive5-replaced": "1.0.0"}},
{
"name": "symlinked/path-pkg-replace",
"version": "1.0.0",
"require": {
"symlinked/transitive3-replaced": "1.*",
"symlinked/transitive4": "1.*",
"symlinked/transitive5-replaced": "1.*"
},
"replace": {
"symlinked/replaced-pkg": "1.0.0"
},
"dist": {"type": "path", "url": "./symlinked-path-repo-replacer", "reference": "abcd"}, "transport-options": {}
}
],
"allowList": [
"root/update"
],
"allowTransitiveDeps": true
}
--FIXED--
[
]
--PACKAGE-REPOS--
[
{"type": "path", "url": "./symlinked-path-repo-with-replaced-deps"},
{"type": "path", "url": "./symlinked-path-repo-replacer"},
[
{"name": "root/update", "version": "1.0.4", "require": {"symlinked/path-pkg": ">=1.0.1", "symlinked/replaced-pkg": "*"}},
{"name": "symlinked/transitive", "version": "1.0.0"},
{"name": "symlinked/transitive", "version": "2.0.2"},
{"name": "symlinked/transitive3", "version": "1.0.0", "replace": {"symlinked/transitive3-replaced": "1.0.0"}},
{"name": "symlinked/transitive3", "version": "1.0.3", "replace": {"symlinked/transitive3-replaced": "1.0.3"}},
{"name": "symlinked/transitive3", "version": "2.0.4", "replace": {"symlinked/transitive3-replaced": "2.0.4"}},
{"name": "symlinked/transitive4", "version": "1.0.0"},
{"name": "symlinked/transitive4", "version": "2.0.2"},
{"name": "symlinked/transitive5", "version": "1.0.0", "replace": {"symlinked/transitive5-replaced": "1.0.0"}},
{"name": "symlinked/transitive5", "version": "1.0.3", "replace": {"symlinked/transitive5-replaced": "1.0.3"}},
{"name": "symlinked/transitive5", "version": "2.0.4", "replace": {"symlinked/transitive5-replaced": "2.0.4"}}
]
]
--EXPECT--
[
"symlinked/transitive-1.0.0.0",
"symlinked/transitive-2.0.2.0",
"symlinked/path-pkg-2.0.0.0",
"root/update-1.0.4.0",
"symlinked/transitive3-1.0.3.0",
"symlinked/transitive3-2.0.4.0",
"symlinked/transitive4-1.0.0.0",
"symlinked/transitive4-2.0.2.0",
"symlinked/transitive5-1.0.3.0",
"symlinked/transitive5-2.0.4.0"
]

View File

@ -0,0 +1,12 @@
{
"name": "symlinked/path-pkg-replace",
"version": "2.0.0",
"require": {
"symlinked/transitive3-replaced": ">=1.0.3",
"symlinked/transitive4": "2.*",
"symlinked/transitive5-replaced": "2.*"
},
"replace": {
"symlinked/replaced-pkg": "2.0.0"
}
}

View File

@ -0,0 +1,9 @@
{
"name": "symlinked/path-pkg",
"version": "2.0.0",
"require": {
"symlinked/transitive": "2.*",
"symlinked/transitive3-replaced": "2.*",
"symlinked/transitive5-replaced": ">=1.0.3"
}
}