Features
-
include_subdirs qualifiednow accepts literal and dynamic directory-to-module mappings, allowing subdirectories to be renamed in the qualified namespace. Merged in #13691 and #16420; closes #7605. -
Action-plugin rules now support multiple dynamic invocations per rule,
with-accepted-exit-codeson dynamic-run, and a newAction_plugin.build_depsAPI for batched file/directory/glob dependency waits. Merged in #16403, #16402, #16394. -
A
toolstanza for persistent discretionary-tool configuration is proposed in #16411 (open). It introducesinheritandshared_packagesfields and is taggedunreleased.
Fixes
-
Menhir-generated parsers now preserve dependencies used by type inference, eliminating racy "inconsistent assumptions over interface" failures. Merged in #16447; closes #14450.
-
Breaking: Generated files are now always made read-only (executable bits preserved), removing the pre-2.4 language-version opt-out. Merged in #16388. Projects relying on writable generated files must update.
-
Breaking:
Dune_rpc_lwt.V1.Action_plugin.runnow returnsunit Lwt.tinstead of driving the event loop or exiting the process. Callers must wrap inLwt_main.run. Merged in #16404.
Compatibility and Releases
-
generate_opam_filesin dune 3.24:dune build <name>.opamno longer produces the file. Usedune build @opaminstead. Reported in #16375 (open). -
Dune 3.24.2 installed via opam segfaults on macOS 26 when the macOS 27 SDK is active. Workaround: set
CFLAGS='-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk'and reinstall the switch. Reported in #16417 (open).