Thicket thicket
ocaml
REPOS 9

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

W46.2026 · 9–15 Novocaml/dune

Features

  • Dune 3.25.0 released (2026-11-12). Key breaking changes: actions no longer see the shared install staging area on PATH/OCAMLPATH; generated files are now read-only; : is rejected in context names. (release)

  • RPC-backed rule plugins (merged 2026-11-13, requires (lang dune 3.26) + (using plugin 0.1)). Projects define custom stanza forms via a small OCaml executable; Dune builds and invokes the plugin automatically. The existing site-plugin stanza is renamed to (dune_site.plugin ...). (#16760)

  • dune tools env now adds all dependency executables to PATH (merged 2026-11-12). A single eval $(dune tools env) exposes every installed tool binary. Follow-up work proposes sanitising build-tree entries from rule PATH to preserve hermeticity. (#16901, #17004)

  • GC defaults for compiler and Melange commands (merged 2026-11-13 / 2026-11-16). Dune-generated ocamlc/ocamldep invocations default to s=2M and, on OCaml ≥ 5.5, a 128 MiB-equivalent Xsmall_heap_limit. Explicit OCAMLRUNPARAM overrides are preserved. Measured 7–12 % wall-time reduction on release-profile builds. (#16914, #17022)

Fixes

  • Private CMI changes now rebuild consumers (merged 2026-11-10). Editing a module listed in (private_modules ...) previously left consumers stale, causing "inconsistent assumptions over interface" errors until _build was deleted. (#16939, fixes #16071)

  • Eager watch mode no longer reports diagnostics twice (merged 2026-11-10). dune build over RPC with an eager watch server printed each error once per goal; errors are now deduplicated across parallel goals. (#16900, fixes #15609)

  • Workspace cache survives terminal hangup (merged 2026-11-16). SIGHUP is routed through the normal scheduler shutdown path, so the workspace database is persisted and the next build reuses completed rules. (#17064)

Compatibility and Releases

  • Dune 3.25.1 point release in progress (tracker opened 2026-11-14). Three regressions are being backported: dune-site path mismatch (#17031), parser-generator dialect collision (#17030), and Melange .cmj visibility with private_modules (#17020). (#17033, #17034)

  • Proposal: remove user-facing sandbox types (opened 2026-11-10). --sandbox copy will be removed and the (sandbox ...) rule field deprecated, as per-sandbox-type rules are non-portable and prevent transparent implementation improvements. (#16987)