Features
-
Dune 3.22.0~alpha1: Released 2026-03-11. Adds
DUNE_JOBSenv var,dune trace cat,@doc-markdownalias for odoc,dune runtestwith individual test args,shellfield in cram stanzas, anddune-action-tracepublic library. See release notes. -
Dune 3.23 sandboxing: Merged #13805 enables sandboxing for user-defined rules starting at
dune lang 3.23. Projects usingdune lang 3.22or earlier are unaffected. -
Dune multi-line strings: Open PR #13758 adds preservation of
|and>block strings when formatting dune files atdune 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 adb/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
selectregression: Merged #13804 restoresdune lang 1.0semantics 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_rewriterdependencies, not just directly listed ones. Fixes #3426. -
Dune build-dir lock: Merged #13767 stops
dune buildfrom 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 catnow locates it correctly from subdirectories.