Thicket thicket
ocaml
REPOS 1

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

W37.2026 · 7–13 Sepocaml/dune

Features

  • Breaking: Generated files are now always made read-only, removing the pre-2.4 language-version opt-out. Executable bits are preserved; builds behave identically with or without the shared cache. #16388

  • Breaking API: Dune_rpc_lwt.V1.Action_plugin.run now returns unit Lwt.t instead of driving the event loop or exiting the process. Callers must use Lwt_main.run and manage process lifetime. #16404

  • Action plugins now support multiple dynamic-run invocations per rule (via progn or concurrent) and honor with-accepted-exit-codes. Each invocation retains its working directory; discovered inputs invalidate the enclosing rule. #16403, #16402

  • New Action_plugin.build_deps API exposes batches of file, directory, and glob dependencies. Plugins can wait for these and use ordinary I/O without reading contents through the plugin API. #16394

Fixes

  • Action-plugin dynamic-run now forwards with-stdout-to to the subprocess, writing output to the requested target instead of Dune's terminal. #16376

  • Action-plugin dependency paths are resolved from the client's current directory rather than its launch directory, fixing reads after a chdir. #16384

  • Menhir type inference with package management and the relocatable compiler fails with Unbound module Stdlib on macOS. A fix adding an explicit stdlib dependency and path reclassification is in review. #16374

  • Melange mode now resolves .cmi, .cmt, and .cmti against the OCaml module set first, falling back to Melange artifacts, fixing regressions in mixed builds. #16339