dlang / dub

Package and build management system for D
MIT License
677 stars 227 forks source link

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

Open CyberShadow opened 4 months ago

CyberShadow commented 4 months ago

System information

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]