Skip to content

fix: track private CMIs in OCaml compilation dependencies - #16939

Merged
anmonteiro merged 2 commits into
ocaml:mainfrom
anmonteiro:fix-ocaml-private-cmi-dependencies
Nov 10, 2026
Merged

anmonteiro merged 2 commits into
ocaml:mainfrom
anmonteiro:fix-ocaml-private-cmi-dependencies

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Track private CMIs as compilation dependencies so wrapper aliases work in sandboxes and private interface changes rebuild consumers.

Uses the regression test from #16937. Fixes #16071.

01a12d8e-c091-7010-b0cd-3fdc40400e80

@anmonteiro
anmonteiro force-pushed the fix-ocaml-private-cmi-dependencies branch from 9d2a6e8 to 6736253 Compare November 10, 2026 14:07
@anmonteiro
anmonteiro merged commit 26d0bdd into ocaml:main Nov 10, 2026
4 of 25 checks passed
@Alizter Alizter added this to the 3.26.0 milestone Nov 11, 2026
anmonteiro added a commit that referenced this pull request Nov 19, 2026
Resolve Melange aliases into local private modules and installed private
libraries using hidden CMI paths and sandbox dependencies. Assume
Melange 6+ and reuse the OCaml version check for hidden includes.

Uses the merged regressions from #16931, #16932, #16933, and #16934;
follows #16939. Updates #16940’s test for the Melange 6+ assumption.

01a12d8e-c091-7010-b0cd-3fdc40400e80

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
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.

Editing a (private_modules ...) interface does not rebuild consumers; the build then fails with "inconsistent assumptions over interface"

2 participants