Skip to content

test(ocaml): demonstrate top absolute directory failure - #16137

Merged
rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-swkukuxwukqp
Aug 23, 2026
Merged

rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-swkukuxwukqp

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Add a regression test recording the current internal error when dune ocaml top receives an absolute directory path inside the workspace.

This is test-only groundwork for resolving the command's directory through the
shared Common.source_path handling.

Record the internal error raised when `dune ocaml top` receives an
absolute directory path inside the workspace.

Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg
rgrinberg merged commit ef69d71 into ocaml:main Aug 23, 2026
37 of 38 checks passed
rgrinberg added a commit that referenced this pull request Aug 23, 2026
Resolve the directory passed to `dune ocaml top` through
`Common.source_path`, then map the resulting source path into the
selected
build context.

This accepts absolute directories inside the workspace instead of
raising the
internal error recorded in #16137.

Signed-off-by: Rudi Grinberg <[email protected]>
@Alizter Alizter added this to the 3.25.0 milestone Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants