Features
-
Dune 3.25: sandboxed pkg-config, MDX, and PPX lint actions.
pkg-configqueries,ocaml-mdxgenerators (extension 0.6), and PPX lint actions now run inside the sandbox by default, preventing them from reading undeclared workspace inputs. Earlier language versions retain prior behaviour. (#16178, #16177, #16176) -
dune pkg lock: single SAT solve across all requested platforms. All platform roles are solved in one SAT problem; packages appearing on multiple platforms are constrained to the same version. Portable lock directories now produce a consistent cross-platform solution. (#15982, by Alizter) -
dune trace cat: new--only-actionsand--no-actionsflags. Mutually exclusive options filter events collected from actions while leaving the default combined output unchanged. Applies to JSON, S-expression, Chrome, and followed output. (#16245)
Compatibility and Releases
-
Experimental
(fdo ...)workspace field removed. The FDO integration with external OCamlFDO tooling has no known users and is deleted along with its compilation, linking, and documentation. Projects using the field must remove it. (#16198) -
Dune 3.25: cram test names preserve the full
.tbasename. Generated aliases anddune testtargets use the complete filename from language 3.25 onward; older projects retain the historical truncated form. (#16146)
Fixes
-
RPC: forwarded paths rebased to workspace root. Relative
build,exec, andruntestpaths sent to a running Dune process are now interpreted from the client invocation directory rather than the server's startup directory. Fixes editor-integration workflows where client and server start in different subdirectories. (#16267) -
Merlin: mode-aware configurations for mixed libraries. OCaml and Melange
.merlinconfigs are generated and persisted for mixed-mode libraries; exact file matches are preferred over extensionless fallbacks. Improves editor diagnostics in projects using both backends. (#16192, #16194, by anmonteiro) -
dune build @opam: promotion restored after file deletion. Deleting a generated.opamfile now causes@opamto regenerate and offer the file for promotion. Fixes a 3.24.2 regression where the stale build-tree copy was excluded from the sandbox. (#16234, #16233) -
OCAMLFIND_CONFtoolchain-only config crashes (open). SettingOCAMLFIND_CONFto afindlib.confthat defines a tool only under a toolchain predicate raisesFilename.of_string_exn: invalid filenamesince 3.24.2. A fix distinguishing "no matching predicate" from "invalid value" is in review. (#16226, #16239)