Thicket thicket
ocaml
REPOS 9

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

W27.2026 · 29 Jun – 5 Julocaml/dune

Compatibility and Releases

  • Dune 3.24.0 released to opam. Release branch merged 2026-07-01. (#14621, #14620)

Fixes

  • Melange: default sandboxing reverted and original source dependency restored during preprocessing. Two regressions from 3.24.0 affecting JS builds. (#15418, #15395)
  • dune utop <abs-path> no longer crashes with an internal Code_error. Absolute workspace paths are localised before use. (#15272, #15108)
  • dune fmt no longer returns a non-zero exit code when it formats files, aligning with other formatters. dune fmt --preview still reports unformatted files. (#15380)
  • dune fmt actions now receive environment variables, fixing a regression where formatter-specific env vars (e.g. REFMT_PRINT_WIDTH) were dropped. (#15386)

Features

  • Root module generation now excludes PPX runtime libraries. Only user-declared stanza dependencies appear in the generated root module. Breaking change for the (root_module) feature. (#15419)
  • dune tools exec utop is now permitted, matching the existing behaviour for ocaml-index and other dev tools. Previously only dune utop was available. (#15388)
  • Watch-mode status line shows build elapsed time and average process parallelism. The completed build's duration persists in the status line after the build finishes. (#15384, #15390)
  • Proposal: narrow PATH and %{bin:X} resolution in lock-dir contexts to the owning package's dependency closure, reducing unnecessary build dependencies. Open PR. (#15381)