dub
dub copied to clipboard
project.dependencies is missing dependencies
This might be a regression in dub as a library
System information
- dub version: 1.36.0
- OS Platform and distribution: Linux
- compiler version dmd v2.106.1
Bug Description
after calling dub.upgrade(UpgradeOptions.select | UpgradeOptions.noSaveSelections); in a project that doesn't have any dub.selections.json file, but has not-yet-downloaded specified dependencies in its recipe, the dependencies property in dub.project.dependencies stays empty.
dub.project.rootPackage.getAllDependencies() on the other hand contains dependencies, dub.project.selections is also populated.
Expected Behavior
dub.project.dependencies should contain the dependencies of rootPackage, and their dependencies, recursively.
I think this would be a good candidate for the new unittest system. However it doesn't currently support much in the PackageSupplier department. I'll fix that tomorrow.