Skip to content

dune describe external-lib-deps omits libraries that have no dependencies #15566

Description

@Khady

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    describe`dune show` / `dune describe` commands for showing information about a dune build

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions