Skip to content

fix(melange): resolve aliases through hidden private interfaces - #16941

Merged
anmonteiro merged 3 commits into
ocaml:mainfrom
anmonteiro:fix-melange-private-aliases
Nov 19, 2026
Merged

anmonteiro merged 3 commits into
ocaml:mainfrom
anmonteiro:fix-melange-private-aliases

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

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

@anmonteiro
anmonteiro marked this pull request as ready for review November 7, 2026 21:24
@anmonteiro
anmonteiro force-pushed the fix-melange-private-aliases branch from 5e71a7a to 75e6694 Compare November 10, 2026 14:26
@anmonteiro
anmonteiro force-pushed the fix-melange-private-aliases branch from 75e6694 to 911f5ba Compare November 10, 2026 14:38
anmonteiro added a commit that referenced this pull request Nov 12, 2026
…#16940)

Test that public APIs backed by private modules still build when Melange
rejects `-H`. Compatibility coverage for #16941.

01a12d8e-c091-7010-b0cd-3fdc40400e80

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro
anmonteiro force-pushed the fix-melange-private-aliases branch from 911f5ba to 5577fbd Compare November 12, 2026 14:09
This was referenced Nov 16, 2026
anmonteiro added a commit that referenced this pull request Nov 18, 2026
Demonstrate that private modules hide CMJ optimization metadata from
consumers of workspace libraries (#17020). The regression also
reproduces with #16941.

01a12d8e-c091-7010-b0cd-3fdc40400e80

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro
anmonteiro merged commit 056e8d7 into ocaml:main Nov 19, 2026
37 of 38 checks passed
@anmonteiro
anmonteiro deleted the fix-melange-private-aliases branch November 19, 2026 14:05
@Alizter Alizter added this to the 3.26.0 milestone Nov 20, 2026
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.

2 participants