Thicket thicket
ocaml
REPOS 9

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

W51.2025 · 15–21 Decocaml/dune

Features

  • Dune 3.21.0~alpha4: Adds (lang rocq), library_parameter, dune promotion show, DUNE_ROOT, unused-libs alias, and (files) stanza. Breaking: 3.21 no longer overrides default compiler warnings. Release

  • Dune Odoc v3 rules: Proposes unified @doc and @doc-full aliases, hierarchical docs via a documentation stanza, ocaml.org cross-links, and a sherlodoc index. Errors are scoped to the current project. #12995

  • Dune structured logging: Folds _build/log into the trace file, produced by default. Log messages carry structured payloads for scripting. #13015

Fixes

  • Dune nested dune calls: Merged fix resolves dune in package build rules to the running binary and prepends its directory to PATH. Prevents accidental capture of a different dune executable. #12935

  • Dune dune tools: Merged merlin support in dune tools install. An open PR adds a clear error with an install hint when dune tools exec targets an uninstalled tool. #12972, #12978

Compatibility and Releases

  • Dune cache locations: Merged change moves toolchains, git-repo, and rev-store caches under DUNE_CACHE_ROOT (defaulting to $XDG_CACHE_HOME/dune/). Existing cache paths shift; set DUNE_CACHE_ROOT to preserve the old layout. #12858

  • Dune pkg no-op builds: Open bug reports a ~13 s no-op dune build with package management versus ~0.85 s with opam. Target is within 500 ms of the opam baseline. #12693

  • Dune dune clean: Open issue reports that dune clean deletes package management data from _build, removing installed packages and dev tools. A PR to preserve this data was closed without merge. #12976