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

"Non-optional dependency ... not found in dependency tree!?" with --single --nodeps #2950

Open
CyberShadow opened this issue Jul 10, 2024 · 0 comments

Comments

@CyberShadow
Copy link
Member

System information

  • dub version: DUB version 1.38.0, built on Jan 1 1980
  • OS Platform and distribution: NixOS
  • compiler version DMD64 D Compiler v2.108.0

Bug Description

Assertion failure when combining --single and --nodeps.

How to reproduce?

Create test.d:

/+ dub.sdl:
 dependency "ae" version="==0.0.3236"
+/
void main() {}

then run: dub describe --single --nodeps test.d

Expected Behavior

A meaningful error message.

For describe --nodeps, some machine-readable output which includes some description of dependencies (everything that can be known without fetching them) would be nice.

Logs

$ dub describe --single --nodeps test.d
core.exception.AssertError@source/dub/project.d(203): Non-optional dependency 'ae' of 'test' not found in dependency tree!?.
----------------
??:? [0x79a7a6]
??:? [0x79a412]
??:? [0x7c2e9e]
??:? [0x7a2f8f]
??:? [0x799473]
??:? [0x42fda4]
??:? [0x42fb43]
??:? [0x43071a]
??:? [0x4305c5]
??:? [0x739868]
??:? [0x666b70]
??:? [0x7a2c6c]
??:? [0x7a2b66]
??:? [0x7a29bc]
??:? [0x7f29bea5610d]
??:? __libc_start_main [0x7f29bea561c8]
??:? [0x404c44]
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

1 participant