Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix generating sites modules failure when implicit_transitive_deps set to false #10650

Merged
merged 5 commits into from
Jun 19, 2024

Conversation

MA0010
Copy link
Contributor

@MA0010 MA0010 commented Jun 17, 2024

This PR proposes an edit to allow building dune projects with generate_sites_module stanza, even when implicit_transitive_deps is set to false, which is the desired behavior.

In short, when using genereate_sites_modules, the module sites.ml is generated having dune-site library as a direct dependency, which in turn has dune-section private library as a transitive dep. Since dune-section is used explicitly in sites.ml, the build fails when implicit_transitive_deps is set to false (even with dune supporting hidden deps, see #10644).

Therefore, dune-section is re_exported in the stanza of dune-site in order to avoid this failure.

Fixes #9661

Comment on lines 2 to 3
in order to avoid failure when generating and building sites modules
with implicit_transitive_deps = false. (#10650, @MA0100)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the extra leading whitespace.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Signed-off-by: HasanA <[email protected]>
Copy link
Collaborator

@nojb nojb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (also seen by @rgrinberg offline)

doc/changes/10650.md Outdated Show resolved Hide resolved
@nojb nojb merged commit 34741e2 into ocaml:main Jun 19, 2024
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modules generated for sites use an implicit transitive dep
2 participants