Thicket thicket
ocaml
REPOS 1

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

W37.2025 · 8–14 Sepocaml/dune

Features

  • Dune DUNE_ROOT: New environment variable sets the project root, equivalent to --root. Takes precedence over directory traversal; --root still overrides it. Merged in #12438.

  • Dune RPC formatting: dune fmt and dune rpc fmt can now run while a dune build -w watch server is active, enabling editor-driven formatting without stopping the build. Merged in #12064, closing #11958.

  • Dune OxCaml parameterized libraries: The implements field now accepts a parameter, allowing a library to implement a parameterized library. Requires the OxCaml compiler; the (parameters ...) library stanza is still in progress in #12336. Merged in #12392.

  • Dune Melange melange.runtime_deps: Public libraries can now declare directory targets in melange.runtime_deps, supporting bundled asset directories. Merged in #12297.

  • Dune Docker images: A GitHub Action publishes a minimal Dune Docker image to the GitHub container registry on each release, providing a base for dune pkg deployments without opam. Merged in #12252.

Fixes

  • Dune (pkg disabled): The option now actually disables package management features rather than only changing dune pkg enabled output. Previously undocumented and non-functional; now documented. Merged in #12444.

  • Dune RPC exit code: dune build now returns a non-zero exit code when the RPC connection is terminated unexpectedly, instead of returning 0. Merged in #12446, fixing #12445.

Compatibility and Releases

  • Dune 3.20.2: Release tracker closed 2025-09-11 with changelog merged in #12441. Backports include fixes from #12325 and #12324.

  • Dune package management on Windows: Multiple issues opened this week document failures: shell scripts cannot execute as binaries (#12432), menhir.exe is not found in the build tree (#12433), ocamlfind.install omits .exe extensions (#12430), and compiler source fetching fails on directory targets (#12429). Tracked under #11161.