Tools covers builds, package management, editors, documentation and JavaScript compilation.
W46.2025 · 10–16 Nov/Tools
Features
Dune pkg: portable lock directories are now the default format; dune auto-detects non-portable lockdirs. Closes #11476 and #12694 via #12680.
Dune pkg: with (pkg enabled) in dune-workspace, dune build resolves and installs dependencies without a prior dune pkg lock. An existing lockdir is still honoured. Closes #11614 and #12098 via #12653.
Dune rules: new artifact variables %{cmt} and %{cmti} reference compiled interface files directly; %{cmti} falls back to the .cmt for modules without a separate .cmti. Closes #12633 via #12634.
Dune: new @unused-libs alias errors when a library or executable links a never-referenced dependency; allow_unused_libraries suppresses the check per stanza. Closes #650 via #12623.
Dune: new dune describe tests subcommand lists unit, cram, and inline test stanzas with name, source dir, package, enabled status, and build target. Closes #12030 via #12545.
opam (proposal):#6489 proposes checking depexts status during opam update rather than at install time, reducing repeated system checks. Open.
Fixes
Js_of_ocaml runtime: merged fix removes spurious node:util references from generated JS when using --target-env browser in the dev profile. Closes #2127 via #2129.
Merlin: non-exhaustive lambda-pattern matching is now reported as an error. Issue #1517 closed; regression test merged in #1995.
Dune Coq/Rocq:(modules_flags ...) now accepts multiple modules in a single coq.theory stanza, gated behind coq lang 0.11. Closes #12638 via #12733.
Releases
opam 2.5.0~beta1: first beta release. Fixes opam switch create --dry-run creating switch directories, version-equivalent rename removing packages, and macOS sandbox path restrictions; drops the cmdliner dependency. Release notes
Compatibility
opam:#6795 (merged) adds 2.5.0~beta1 to the official install scripts.
Merlin 4.7-413:opam install merlin fails on Ubuntu 25.04 with OCaml 4.13.1 due to a snprintf truncation error in ocamlmerlin.c. Issue #1993 is open.