Skip to content

fix(package-deps): materialize the Melange library closure - #16124

Draft
Alizter wants to merge 5 commits into
ocaml:mainfrom
Alizter:push-mpqxzxtvmzwo
Draft

fix(package-deps): materialize the Melange library closure#16124
Alizter wants to merge 5 commits into
ocaml:mainfrom
Alizter:push-mpqxzxtvmzwo

Conversation

@Alizter

@Alizter Alizter commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Description

Stacked on #15996 and the regression in #16025. Compute each package-provided library root closure in Melange mode so scoped workspace layouts satisfy serialized melange_requires edges.

Related to #15511.

Record that a package root reached under a competing virtual implementation does not receive its own link closure.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
Exercise library dependencies, private libraries, stubs, redirects, namespaces, virtual implementations, PPX runtime libraries, nested Dune consumers, installed packages, and only-packages masking. Record the current missing-library failures before materializing the closure.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
Record that a scoped package layout retains melange_requires metadata without materializing its referenced workspace library.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
Make workspace packages declared with (deps (package ...)) expose the ordinary OCaml library closure required by their installed libraries. Materialize only selected library artifacts and generated metadata, including direct redirects, PPX runtime dependencies, and virtual default implementations.

Do not follow package metadata: external packages have no reliable package dependency graph, while OCaml library metadata provides the closure consumers resolve.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
Compute each workspace root library closure in Melange mode as well as OCaml mode so scoped package layouts satisfy serialized melange_requires edges.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
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.

1 participant