A library stanza with no (libraries ...) field is absent from the output of dune describe external-lib-deps, while other stanzas still reference it by name in their internal_deps. The output is therefore not self-contained: consumers of the data cannot resolve those internal_deps names to a stanza (and so cannot recover the library's dune package or source directory). This can be compensated with dune describe workspace, but is also not completely trivial as some commands use internal names while some other use external names.
Expected Behavior
dune describe external-lib-deps should list all libraries, even those that do not have dependencies.
Actual Behavior
dune describe external-lib-deps lists only libraries with dependencies
Reproduction
https://github.com/Khady/dune-describe-depless-library
Specifications
- Version of
dune (output of dune --version): 3.24
- Version of
ocaml (output of ocamlc --version): 5.5.0
- Operating system (distribution and version): debian 12
A library stanza with no
(libraries ...)field is absent from the output ofdune describe external-lib-deps, while other stanzas still reference it by name in theirinternal_deps. The output is therefore not self-contained: consumers of the data cannot resolve thoseinternal_depsnames to a stanza (and so cannot recover the library's dune package or source directory). This can be compensated withdune describe workspace, but is also not completely trivial as some commands use internal names while some other use external names.Expected Behavior
dune describe external-lib-depsshould list all libraries, even those that do not have dependencies.Actual Behavior
dune describe external-lib-depslists only libraries with dependenciesReproduction
https://github.com/Khady/dune-describe-depless-library
Specifications
dune(output ofdune --version): 3.24ocaml(output ofocamlc --version): 5.5.0