Thicket thicket
ocaml
REPOS 1

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W44.2025 · 27 Oct – 2 Novocaml/dune

Features

  • Dune parameterized libraries: PR #12561 adds instantiation of parameterized libraries via (my_lib arg1 arg2 :as new_name) in dependencies. Requires OxCaml; not yet available in upstream OCaml.

  • Dune cram setup_scripts: PR #12650 adds a setup_scripts field to the cram stanza, auto-sourcing listed shell scripts in every test in the directory.

  • Dune %{cmt} artifact variables: PR #12634 adds %{cmt} and %{cmti} to artifact variables in custom rules, enabling direct references to type-checking artifacts.

  • Dune pkg autolocking: PR #12653 introduces automatic lock-directory generation when (pkg enabled) is set and no lock source is present, removing the need for explicit dune pkg lock.

Fixes

  • Dune Merlin config loading: PR #12621 fixes incorrect .merlin file selection when multiple executables share a directory, resolving wrong obj_dirs passed to the editor.

  • Dune portable lockdirs: PR #12641 removes Windows arm64 from the default platform set, reducing solver runs. PR #12654 extends this to all Windows platforms.

  • Dune melange @all alias: PR #12628 includes Melange .cmj artifacts in the @all alias, fixing missing module compilation for (using melange 1.0) projects.

Compatibility and Releases

  • Dune lockdir rename: PR #12648 proposes renaming dune.lock to .dune-solution-cache to discourage version control of non-portable lock directories. Awaiting resolution on portable lockdir defaults.