Thicket thicket
ocaml
REPOS 1

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

W11.2026 · 9–15 Marocaml/dune

Features

  • Dune 3.22.0~alpha1: Released 2026-03-11. Adds DUNE_JOBS env var, dune trace cat, @doc-markdown alias for odoc, dune runtest with individual test args, shell field in cram stanzas, and dune-action-trace public library. See release notes.

  • Dune 3.23 sandboxing: Merged #13805 enables sandboxing for user-defined rules starting at dune lang 3.23. Projects using dune lang 3.22 or earlier are unaffected.

  • Dune multi-line strings: Open PR #13758 adds preservation of | and > block strings when formatting dune files at dune lang >= 3.22. Requires a version bump; for older lang versions, block strings convert to escaped strings or templates.

Compatibility and Releases

  • Dune 3.22.0~alpha1: The release includes a breaking cache path change: the build cache moves to $DUNE_CACHE_ROOT/db. Users can prevent invalidation by moving existing contents into a db/ subdirectory. See release notes.

  • Dune async digests: Merged #13341 computes target digests asynchronously, reducing build-time I/O stalls. Part of a multi-PR series targeting build performance.

Fixes

  • Dune select regression: Merged #13804 restores dune lang 1.0 semantics for (select ..) on non-OCaml files, fixing a build failure in packages like mccs. Closes #13802.

  • Dune ppx cookies: Merged #13737 collects cookies from transitive ppx_rewriter dependencies, not just directly listed ones. Fixes #3426.

  • Dune build-dir lock: Merged #13767 stops dune build from hanging indefinitely when the build directory is locked by a dead process. Closes #12685.

  • Dune trace file path: Merged #13735 places the default trace file at the workspace build root rather than relative to the current working directory. dune trace cat now locates it correctly from subdirectories.