Test path repo dependencies are updated in transitive partial updates (#7)
parent
fcda22659a
commit
b8caf4b214
|
@ -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"
|
||||
]
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue