Thicket thicket
ocaml
REPOS 1

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

W35.2026 · 24–30 Augocaml/dune

Features

  • Dune 3.25: sandboxed pkg-config, MDX, and PPX lint actions. pkg-config queries, ocaml-mdx generators (extension 0.6), and PPX lint actions now run inside the sandbox by default, preventing them from reading undeclared workspace inputs. Earlier language versions retain prior behaviour. (#16178, #16177, #16176)

  • dune pkg lock: single SAT solve across all requested platforms. All platform roles are solved in one SAT problem; packages appearing on multiple platforms are constrained to the same version. Portable lock directories now produce a consistent cross-platform solution. (#15982, by Alizter)

  • dune trace cat: new --only-actions and --no-actions flags. Mutually exclusive options filter events collected from actions while leaving the default combined output unchanged. Applies to JSON, S-expression, Chrome, and followed output. (#16245)

Compatibility and Releases

  • Experimental (fdo ...) workspace field removed. The FDO integration with external OCamlFDO tooling has no known users and is deleted along with its compilation, linking, and documentation. Projects using the field must remove it. (#16198)

  • Dune 3.25: cram test names preserve the full .t basename. Generated aliases and dune test targets use the complete filename from language 3.25 onward; older projects retain the historical truncated form. (#16146)

Fixes

  • RPC: forwarded paths rebased to workspace root. Relative build, exec, and runtest paths sent to a running Dune process are now interpreted from the client invocation directory rather than the server's startup directory. Fixes editor-integration workflows where client and server start in different subdirectories. (#16267)

  • Merlin: mode-aware configurations for mixed libraries. OCaml and Melange .merlin configs are generated and persisted for mixed-mode libraries; exact file matches are preferred over extensionless fallbacks. Improves editor diagnostics in projects using both backends. (#16192, #16194, by anmonteiro)

  • dune build @opam: promotion restored after file deletion. Deleting a generated .opam file now causes @opam to regenerate and offer the file for promotion. Fixes a 3.24.2 regression where the stale build-tree copy was excluded from the sandbox. (#16234, #16233)

  • OCAMLFIND_CONF toolchain-only config crashes (open). Setting OCAMLFIND_CONF to a findlib.conf that defines a tool only under a toolchain predicate raises Filename.of_string_exn: invalid filename since 3.24.2. A fix distinguishing "no matching predicate" from "invalid value" is in review. (#16226, #16239)