Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

project.dependencies is missing dependencies #2853

Open
WebFreak001 opened this issue Feb 13, 2024 · 1 comment
Open

project.dependencies is missing dependencies #2853

WebFreak001 opened this issue Feb 13, 2024 · 1 comment

Comments

@WebFreak001
Copy link
Member

WebFreak001 commented Feb 13, 2024

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.

@Geod24
Copy link
Member

Geod24 commented Feb 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants