Skip to content

Dune should warn about dependencies on unused libraries #650

@dra27

Description

@dra27

It's still quite commonplace to end up with (libraries (... bytes ...)) even though using Dune implies OCaml >= 4.02.3.

It would be better if Dune dropped the dependency and issued a warning (especially now that we don't depend on findlib, requiring a dependency on base-bytes in opam-repsository).

EDIT: It would be better if we had such a warning for all libraries in fact. This should be possible via ocamlobjinfo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssue related to what dune buildfeature-requestUser wanted features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions