dub
dub copied to clipboard
"Non-optional dependency ... not found in dependency tree!?" with `--single --nodeps`
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]