Skip to content

Decouple no-dune.t test from dune internal paths - #2078

Merged
voodoos merged 2 commits into
ocaml:mainfrom
shonfeder:decouple-test-from-internal-dune-paths
Jun 13, 2026
Merged

Decouple no-dune.t test from dune internal paths#2078
voodoos merged 2 commits into
ocaml:mainfrom
shonfeder:decouple-test-from-internal-dune-paths

Conversation

@shonfeder

Copy link
Copy Markdown
Member

Dune doesn't provide the layout of its install directories as part of its public API. These internals are changing in dune 3.24, as a result of ocaml/dune#14432, so this path will change. Using dune describe location uses dunes stable API to find the path for the needed binaries.

The need for this update was identified in the revdeps tests on the pre-releas for dune 3.24 in ocaml/opam-repository#29996 (comment) .

Thanks to @Alizter for diagnosing the affect of the breaking change here.

Dune doesn't provide the layout of its install directories as part of
its public API. These internals are changing in dune 3.24, so this path
will change. Using `dune describe location` uses dunes stable API to
find the path for the needed binaries.
Comment on lines -2 to -3
$ cp ../../../../install/default/bin/ocamlmerlin bin/ocamlmerlin
$ cp ../../../../install/default/bin/ocamlmerlin-server bin/ocamlmerlin-server

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dune describe location outputs to stderr (for no good reason I can think of). This should be fixed at some point, but this will continue to work when when it is.

Comment thread tests/test-dirs/config/no-dune.t Outdated
@voodoos voodoos added the no changelog Turn off CI changelog-check label Jun 13, 2026

@voodoos voodoos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @shonfeder and @Alizter !

@voodoos
voodoos merged commit a4bba1b into ocaml:main Jun 13, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog Turn off CI changelog-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants