dub icon indicating copy to clipboard operation
dub copied to clipboard

project.dependencies is missing dependencies

Open WebFreak001 opened this issue 1 year ago • 1 comments

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.

WebFreak001 avatar Feb 13 '24 21:02 WebFreak001

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.

Geod24 avatar Feb 20 '24 10:02 Geod24