Thicket thicket
ocaml
REPOS 9

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

W38.2026 · 14–20 Sepocaml/dune

Features

  • include_subdirs qualified now accepts literal and dynamic directory-to-module mappings, allowing subdirectories to be renamed in the qualified namespace. Merged in #13691 and #16420; closes #7605.

  • Action-plugin rules now support multiple dynamic invocations per rule, with-accepted-exit-codes on dynamic-run, and a new Action_plugin.build_deps API for batched file/directory/glob dependency waits. Merged in #16403, #16402, #16394.

  • A tool stanza for persistent discretionary-tool configuration is proposed in #16411 (open). It introduces inherit and shared_packages fields and is tagged unreleased.

Fixes

  • Menhir-generated parsers now preserve dependencies used by type inference, eliminating racy "inconsistent assumptions over interface" failures. Merged in #16447; closes #14450.

  • Breaking: Generated files are now always made read-only (executable bits preserved), removing the pre-2.4 language-version opt-out. Merged in #16388. Projects relying on writable generated files must update.

  • Breaking: Dune_rpc_lwt.V1.Action_plugin.run now returns unit Lwt.t instead of driving the event loop or exiting the process. Callers must wrap in Lwt_main.run. Merged in #16404.

Compatibility and Releases

  • generate_opam_files in dune 3.24: dune build <name>.opam no longer produces the file. Use dune build @opam instead. Reported in #16375 (open).

  • Dune 3.24.2 installed via opam segfaults on macOS 26 when the macOS 27 SDK is active. Workaround: set CFLAGS='-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk' and reinstall the switch. Reported in #16417 (open).