Skip to content

refactor(utop): use shared source path handling - #16136

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

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

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Use Common.source_path, introduced in #16135, to resolve the directory passed
to dune utop.

This removes the command's separate relative/absolute localization logic while
preserving support for relative paths and absolute paths inside the workspace.
Paths outside the workspace now use the shared source-path error.

Resolve the utop directory through `Common.source_path` instead of
maintaining a separate implementation for relative and absolute paths.
Keep the existing coverage for relative, in-workspace absolute, and
out-of-workspace absolute paths.

Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg
rgrinberg merged commit 530c01e into ocaml:main Aug 23, 2026
37 of 38 checks passed
@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