Skip to content

Modules generated for sites use an implicit transitive dep #9661

@rizo

Description

@rizo

Expected Behavior

Compiling modules created with generate_sites_module when implicit_transitive_deps is set to false should work.

Actual Behavior

It doesn't, failing with:

     ~section:Dune_section.Share
              ^^^^^^^^^^^^^^^^^^
Error: Unbound module Dune_section

From what I understand, the dune-site lib implicitly depends on dune-private-libs.dune-section.

As a workaround the library that uses sites can directly depend on dune-private-libs.dune-section.

Specifications

  • Version of dune (output of dune --version): 3.12.1
  • Version of ocaml (output of ocamlc --version): 5.1.0
  • Operating system (distribution and version): macOS 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions