Dune 3.25.0 is out, and it changes how build actions see the filesystem and how generated files are handled. The OCaml compiler also no longer crashes when it encounters certain redundant match patterns.
Releases
- Dune 3.25.0 (2026-11-12). Build actions no longer see the shared install staging area on their search paths, so any action that previously found a tool there will need an explicit path. Generated files are now read-only, which prevents a build step from accidentally modifying its own output. (release)
Compatibility
- ocaml-lsp-server 1.26.1 and Dune 3.25. The OCaml language server fails to build against the Dune 3.25 API, and no installable 1.26.x release exists for OCaml 5.4 once Dune 3.25 is in your switch. Editor tooling may stop working after you upgrade Dune until a compatible server release appears. (#2236)
Fixes
-
Stale rebuilds with private modules. Editing a module listed in
(private_modules ...)previously left dependent modules unrebuilt, so consumers could run against outdated code. Changes now correctly trigger rebuilds of every dependent. (#16939) -
Compiler abort on redundant match cases. A match that combined
or-patterns withwhenguards could crash the compiler outright when a case was redundant. The compiler now rejects the redundant case with a normal error message instead. (#15184) -
Eio switch error reporting. When a daemon fiber failed inside
Eio.Switch.run, the reported error was always a genericExitrather than the actual exception. The real error is now recorded, soFiber.await_cancelshows what actually went wrong. (#978) -
OCaml's JavaScript compiler and GADTs. In certain dead-code situations involving GADTs, the compiler could emit broken JavaScript output. The compiler now handles the affected variables correctly, so the generated code is valid. (#2615)