dlang / dub

Package and build management system for D
MIT License
673 stars 230 forks source link

project.dependencies is missing dependencies #2853

Open WebFreak001 opened 7 months ago

WebFreak001 commented 7 months ago

This might be a regression in dub as a library

System information

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.

Geod24 commented 7 months ago

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.