Closed alanjaouen closed 3 months ago
Describe the bug With a certain order of unlocket package in sfdx-project.json, package dependencies failed to be resolved
sfdx-project.json
To Reproduce with a sfdx-project.json, have package C depedency resolved as
C
flowchart LR C --> B --> A --> Base
having package in this order result on package C dependency resolved as only B and A (missing Base)
B
A
Base
{ "package": "base", "type": "unlocked", "path": "./src/base", "versionNumber": "1.0.0.NEXT" }, { "package": "A", "type": "unlocked", "path": "./src/A", "versionNumber": "1.0.0.NEXT", "dependencies": [ { "package": "base", "versionNumber": "1.0.0.LATEST" } ] }, { "package": "C", "type": "unlocked", "path": "./src/C", "versionNumber": "1.0.0.NEXT", "dependencies": [ { "package": "B", "versionNumber": "1.0.0.LATEST" } ] }, { "package": "B", "type": "unlocked", "path": "./src/B", "versionNumber": "1.0.0.NEXT", "dependencies": [ { "package": "A", "versionNumber": "1.0.0.LATEST" } ] }
a workdaround was to reorder package like this:
{ "package": "base", "type": "unlocked", "path": "./src/base", "versionNumber": "1.0.0.NEXT" }, { "package": "A", "type": "unlocked", "path": "./src/A", "versionNumber": "1.0.0.NEXT", "dependencies": [ { "package": "base", "versionNumber": "1.0.0.LATEST" } ] }, - { - "package": "C", - "type": "unlocked", - "path": "./src/C", - "versionNumber": "1.0.0.NEXT", - "dependencies": [ - { - "package": "B", - "versionNumber": "1.0.0.LATEST" - } - ] - }, { "package": "B", "type": "unlocked", "path": "./src/B", "versionNumber": "1.0.0.NEXT", "dependencies": [ { "package": "A", "versionNumber": "1.0.0.LATEST" } ] }, + { + "package": "C", + "type": "unlocked", + "path": "./src/C", + "versionNumber": "1.0.0.NEXT", + "dependencies": [ + { + "package": "B", + "versionNumber": "1.0.0.LATEST" + } + ] + },
Expected behavior package definition order must not impact transitive dependency resolotion
Platform Details (please complete the following information):
@alanjaouen Thanks for the detailed write up.. yep, it should. not impact definition order
Describe the bug With a certain order of unlocket package in
sfdx-project.json
, package dependencies failed to be resolvedTo Reproduce with a
sfdx-project.json
, have packageC
depedency resolved ashaving package in this order result on package
C
dependency resolved as onlyB
andA
(missingBase
)a workdaround was to reorder package like this:
Expected behavior package definition order must not impact transitive dependency resolotion
Platform Details (please complete the following information):