Repository navigation
Releases
3.25.0
CHANGES:
Fixed
-
Fix crashes when expanding module artifact pforms (
%{cmi:...}etc.) with
(include_subdirs qualified). Qualified modules can now be referenced by
dotted logical paths such as%{cmi:Sub_a.Foo}.
(#14498, #16214, fixes #14496, @Alizter, @anmonteiro) -
dune show targetsnow accepts build-only directories such as
_build/default/.simple.objs. (#14664, fixes #13782, @Alizter) -
Reword the error raised when
%{target}is used in a rule that omits the
(target ...)(or(targets ...)) field, so it points at the missing
field instead of mentioning "inferred rules". (#14668, fixes #12439,
@Alizter) -
Fix watch mode on Windows by creating the file-watcher sync directory before
using it, avoidingopen(_build/.sync\0): No such file or directorywhen an
RPC client requests a build. (#14678, fixes #14632, @rgrinberg) -
Add file watcher trace events for the Mac and Windows backends (#14722, @rgrinberg)
-
Fix decoding coalesced MacOS file notification events. (#14725, @rgrinberg)
-
Handle directory invalidations correctly in watch mode on MacOS (#14756, @rgrinberg)
-
Update ctime when restoring from the shared cache in copy mode. This prevents
the trimmer from deleting the file. (#14777, @rgrinberg) -
Allow the use of all the available variables in the
(enabled_if)field in
(executable ...)and(install ...)stanzas, similar to other stanzas like
(library ...). (#14860, fixes #14789, @punchagan) -
Linux: dune will now wait for the process group to be dead after the group
leader is dead. This tightens dune's policy for what constitutes
a successful action. Actions for which dune cannot be clean up the process
group will now fail. (@rgrinberg, #14868) -
Fix caching of package sources with symlinks by resolving symlinks after
fetching the sources, similar to the directory symlinks resolution introduced
in #13792 (#14871, fixes #14509, @punchagan) -
Fixed wrong suggestion for duplicate entries in
conflictsfield (#14956,
fixes #14903, @Leonidas-from-XIV) -
Fix building Dune on Solaris/illumos by handling its
wait4semantics
and retrying interrupted reads when spawning processes. (#14980, fixes #14182,
@jperkin) -
Fix
dune-rpc-lwtclients so disconnecting shuts down socket output
without invalidating pending input reads, avoidingEBADFerrors. (#14983,
fixes #7624, @rgrinberg) -
Dune now restores dependency cutoffs concurrently when they were originally
computed in parallel, instead of recomputing them one at a time. The
cutoffs_that_reduce_concurrency_in_watch_modesetting, which existed to
avoid this serialisation, is no longer needed and has been removed.
(#15012, @snowleopard) -
Validate project module names before creating the project directory in
dune init project, so aborted initializations no longer leave empty
directories behind. (#15014, fixes #9963, @rgrinberg) -
Fix cram test output sanitization when the project path contains a space.
Absolute paths are now rewritten to$TESTCASE_ROOTeven when the path
contains spaces, and lines with multiple paths have every path sanitized.
(#15017, fixes #14943, @yussypu) -
Improve the error message for private libraries that cannot be dependencies of
public libraries by mentioning the(package ...)field as an alternative to
giving the private library a public name (#15070, fixes #10230, @rgrinberg). -
Clarify the module conflict error shown when a module is used in multiple
stanzas. The message now explains implicit module ownership and lists all
relevant stanza kinds (#15072, fixes #6598, @rgrinberg). -
Emit relative artifact references in installed
dune-packagefiles when using
an absolute externalDUNE_BUILD_DIR, avoiding build-directory-dependent
archive and module paths (#15077, fixes #11774, @rgrinberg). -
Simplify away
(when false _)expressions (encodedNils) that previously
survived insideconcatandwhenforms, producing cleaner generated lock
directories. (#15092, fixes #15090, @chizy7) -
Drop
(when false _)arguments fromrunactions in generated lock
directories instead of keeping them as no-op entries that were re-encoded as
(when false ""). (#15128, fixes #15099, @chizy7) -
Make dune-configurator pass
--personalitytopkgconfonly for
version 1.7.0 and later. (#15142, fixes #11536, @dra27) -
dune utopnow accepts an absolute path to a workspace directory instead of
crashing with an internal error. (#15272, fixes #15108, @chizy7) -
Fix watch-mode status lines after source changes interrupt a build. Dune now
shows the restart status while cancelling the current build and resumes the
normal progress counter when the next build starts. (#15289, fixes #11134,
@rgrinberg) -
Short-circuit AND and OR expressions in blang. This makes their evaluation
lazy by default.
(#15291, @Sudha247) -
Fix the
%{ppx:ppx1+..+ppxn}form. Previously, it was just broken
and pointed at the wrong binary (#15361, @rgrinberg) -
Remove ppx runtime dependencies from the list of dependencies provided via
theroot_modulefield. If such a runtime dependency is needed, it should be
written in thelibrariesfield. (#15419, @rgrinberg) -
Avoid rebuilding
js_of_ocamllibrary archives on every invocation for
interface-only and empty libraries. (#15427, @anmonteiro) -
Do not crash when
~/.config/duneis a file instead of a directory. Just
pretend it doesn't exist (#15475, fixes #15406, @rgrinberg) -
Dune will now terminate all launched sub-processes even if it received
SIGKILLitself (#15483, @rgrinberg) -
Account for
ctimein stat based digest cache (#15495, @rgrinberg) -
$ dune install --dry-runnow checks for non empty directories as part of its
validation (#15501, @rgrinberg) -
Fix a target-less rule attached to multiple aliases (
(rule (aliases a b) ...)) leaking unrelated contributions between those aliases. Building one
alias no longer pulls in actions or dependencies that were added only to
another of the rule's aliases. (#15581, @NatKarmios) -
Make
dune pkg enabledquery a running Dune RPC server, so it observes
transient server-side--pkg enabledand--pkg disabledsettings without
trying to acquire the build lock (#15589, fixes #15587, @Alizter) -
Make generated MDX executables inherit
link_flagsfromenvstanzas.
(#15614, fixes #15613, @Alizter) -
Return Unix errors from
Fs_io.read_filerather than raising them. (#15641,
@rgrinberg) -
Correct filesystem trace metrics for file writes and directory scans.
(#15686, @rgrinberg) -
Preserve runtime-event ring IDs in Dune traces so consumers can distinguish
interleaved event streams. (#15687, @rgrinberg) -
BREAKING CHANGE: in dune-project, (warnings (duplicate_deps ..)) requires
a dune lang version of 3.22, instead of 3.18 (#15696, @v-gb). -
Preserve spaces in unquoted filenames when applying Git patches instead of
truncating paths at the first space (#15781, @rgrinberg) -
Respect
enabled_ifoninstallstanzas when adding their files and
directories to the@allalias. (#15895, fixes #15825, @aryemans) -
Fix Melange emission with installed libraries whose
.cmjand.cmifiles
are stored in themelangeobject directory (#15949, fixes #14820,
@anmonteiro) -
Reject package dependencies in named dependency bindings while decoding
dependency fields, including for disabled stanzas. (#15966, @rgrinberg) -
Fix Merlin definition lookup for libraries with private modules
(#15977, fixes #4892, @anmonteiro) -
Fix a crash when generating install rules for a Melange-only implementation
of an installed virtual library (#16033, @anmonteiro) -
Prevent build cancellation from crashing Dune when macOS reports
EPERM
while signaling a process group (#16059, fixes #16053, @rgrinberg) -
Fix
dune pkg outdatedso it fails early with a clear user message if it is
run when package management is not enabled. (#16065, @shonfeder) -
Fix watch mode builds remaining stale after the file watcher event queue
overflows (#16068, fixes #16052, @rgrinberg) -
Reject Windows path separators in validated filename components (#16076,
@rgrinberg) -
Preserve output following malformed ANSI escape sequences and erase-line
controls (#16116, @rgrinberg). -
Resolve relative paths passed to
dune ocaml top-modulefrom the directory
where Dune was started, allowing use from workspace subdirectories. (#16135,
@rgrinberg) -
Allow
dune ocaml topto accept absolute directory paths inside the
workspace. (#16142, @rgrinberg) -
Allow Dune promotion commands to accept absolute source paths inside the
workspace. (#16143, @rgrinberg) -
Allow
dune describe workspaceto accept absolute directory filters inside
the workspace. (#16144, @rgrinberg) -
Reject empty
module_systemsfields inmelange.emitstanzas instead of
silently producing no JavaScript files (#16162, @anmonteiro) -
Sandbox PPX lint actions starting with Dune language 3.25 so linters cannot
observe undeclared build targets. (#16176, @rgrinberg) -
Prevent diagnostic source locations at compact-position field boundaries from
being truncated (#16180, @rgrinberg) -
Sandbox
ocaml-mdx depswhen using MDX extension 0.6 so dependency
discovery cannot observe undeclared workspace inputs. (#16183, @rgrinberg) -
Fix missing Odoc generation of OxCaml parameter implementations (#16200, @art-w)
-
Make
Dune_rpc_lwt.V1.Action_plugin.read_directory_with_globreturn an empty listing
for absent directories (#16207, fixes #4445, @rgrinberg) -
Fix compiling Melange implementations of installed virtual libraries, both
with and without binary annotations, including transitive private module
dependencies (#16211, #16212, #16272, @anmonteiro) -
Run Ctypes stub generation in a sandbox and honor its declared dependencies.
(#16223, @rgrinberg) -
Fix
@opamfailing to promote a generated opam file af...
3.25.0~alpha1
CHANGES:
Fixed
-
Fix crashes when expanding module artifact pforms (
%{cmi:...}etc.) with
(include_subdirs qualified). Qualified modules can now be referenced by
dotted logical paths such as%{cmi:Sub_a.Foo}.
(#14498, #16214, fixes #14496, @Alizter, @anmonteiro) -
dune show targetsnow accepts build-only directories such as
_build/default/.simple.objs. (#14664, fixes #13782, @Alizter) -
Reword the error raised when
%{target}is used in a rule that omits the
(target ...)(or(targets ...)) field, so it points at the missing
field instead of mentioning "inferred rules". (#14668, fixes #12439,
@Alizter) -
Fix watch mode on Windows by creating the file-watcher sync directory before
using it, avoidingopen(_build/.sync\0): No such file or directorywhen an
RPC client requests a build. (#14678, fixes #14632, @rgrinberg) -
Add file watcher trace events for the Mac and Windows backends (#14722, @rgrinberg)
-
Fix decoding coalesced MacOS file notification events. (#14725, @rgrinberg)
-
Handle directory invalidations correctly in watch mode on MacOS (#14756, @rgrinberg)
-
Update ctime when restoring from the shared cache in copy mode. This prevents
the trimmer from deleting the file. (#14777, @rgrinberg) -
Allow the use of all the available variables in the
(enabled_if)field in
(executable ...)and(install ...)stanzas, similar to other stanzas like
(library ...). (#14860, fixes #14789, @punchagan) -
Linux: dune will now wait for the process group to be dead after the group
leader is dead. This tightens dune's policy for what constitutes
a successful action. Actions for which dune cannot be clean up the process
group will now fail. (@rgrinberg, #14868) -
Fix caching of package sources with symlinks by resolving symlinks after
fetching the sources, similar to the directory symlinks resolution introduced
in #13792 (#14871, fixes #14509, @punchagan) -
Fixed wrong suggestion for duplicate entries in
conflictsfield (#14956,
fixes #14903, @Leonidas-from-XIV) -
Fix building Dune on Solaris/illumos by handling its
wait4semantics
and retrying interrupted reads when spawning processes. (#14980, fixes #14182,
@jperkin) -
Fix
dune-rpc-lwtclients so disconnecting shuts down socket output
without invalidating pending input reads, avoidingEBADFerrors. (#14983,
fixes #7624, @rgrinberg) -
Dune now restores dependency cutoffs concurrently when they were originally
computed in parallel, instead of recomputing them one at a time. The
cutoffs_that_reduce_concurrency_in_watch_modesetting, which existed to
avoid this serialisation, is no longer needed and has been removed.
(#15012, @snowleopard) -
Validate project module names before creating the project directory in
dune init project, so aborted initializations no longer leave empty
directories behind. (#15014, fixes #9963, @rgrinberg) -
Fix cram test output sanitization when the project path contains a space.
Absolute paths are now rewritten to$TESTCASE_ROOTeven when the path
contains spaces, and lines with multiple paths have every path sanitized.
(#15017, fixes #14943, @yussypu) -
Improve the error message for private libraries that cannot be dependencies of
public libraries by mentioning the(package ...)field as an alternative to
giving the private library a public name (#15070, fixes #10230, @rgrinberg). -
Clarify the module conflict error shown when a module is used in multiple
stanzas. The message now explains implicit module ownership and lists all
relevant stanza kinds (#15072, fixes #6598, @rgrinberg). -
Emit relative artifact references in installed
dune-packagefiles when using
an absolute externalDUNE_BUILD_DIR, avoiding build-directory-dependent
archive and module paths (#15077, fixes #11774, @rgrinberg). -
Simplify away
(when false _)expressions (encodedNils) that previously
survived insideconcatandwhenforms, producing cleaner generated lock
directories. (#15092, fixes #15090, @chizy7) -
Drop
(when false _)arguments fromrunactions in generated lock
directories instead of keeping them as no-op entries that were re-encoded as
(when false ""). (#15128, fixes #15099, @chizy7) -
Make dune-configurator pass
--personalitytopkgconfonly for
version 1.7.0 and later. (#15142, fixes #11536, @dra27) -
dune utopnow accepts an absolute path to a workspace directory instead of
crashing with an internal error. (#15272, fixes #15108, @chizy7) -
Fix watch-mode status lines after source changes interrupt a build. Dune now
shows the restart status while cancelling the current build and resumes the
normal progress counter when the next build starts. (#15289, fixes #11134,
@rgrinberg) -
Short-circuit AND and OR expressions in blang. This makes their evaluation
lazy by default.
(#15291, @Sudha247) -
Fix the
%{ppx:ppx1+..+ppxn}form. Previously, it was just broken
and pointed at the wrong binary (#15361, @rgrinberg) -
Remove ppx runtime dependencies from the list of dependencies provided via
theroot_modulefield. If such a runtime dependency is needed, it should be
written in thelibrariesfield. (#15419, @rgrinberg) -
Avoid rebuilding
js_of_ocamllibrary archives on every invocation for
interface-only and empty libraries. (#15427, @anmonteiro) -
Do not crash when
~/.config/duneis a file instead of a directory. Just
pretend it doesn't exist (#15475, fixes #15406, @rgrinberg) -
Dune will now terminate all launched sub-processes even if it received
SIGKILLitself (#15483, @rgrinberg) -
Account for
ctimein stat based digest cache (#15495, @rgrinberg) -
$ dune install --dry-runnow checks for non empty directories as part of its
validation (#15501, @rgrinberg) -
Fix a target-less rule attached to multiple aliases (
(rule (aliases a b) ...)) leaking unrelated contributions between those aliases. Building one
alias no longer pulls in actions or dependencies that were added only to
another of the rule's aliases. (#15581, @NatKarmios) -
Make
dune pkg enabledquery a running Dune RPC server, so it observes
transient server-side--pkg enabledand--pkg disabledsettings without
trying to acquire the build lock (#15589, fixes #15587, @Alizter) -
Make generated MDX executables inherit
link_flagsfromenvstanzas.
(#15614, fixes #15613, @Alizter) -
Return Unix errors from
Fs_io.read_filerather than raising them. (#15641,
@rgrinberg) -
Correct filesystem trace metrics for file writes and directory scans.
(#15686, @rgrinberg) -
Preserve runtime-event ring IDs in Dune traces so consumers can distinguish
interleaved event streams. (#15687, @rgrinberg) -
BREAKING CHANGE: in dune-project, (warnings (duplicate_deps ..)) requires
a dune lang version of 3.22, instead of 3.18 (#15696, @v-gb). -
Preserve spaces in unquoted filenames when applying Git patches instead of
truncating paths at the first space (#15781, @rgrinberg) -
Respect
enabled_ifoninstallstanzas when adding their files and
directories to the@allalias. (#15895, fixes #15825, @aryemans) -
Fix Melange emission with installed libraries whose
.cmjand.cmifiles
are stored in themelangeobject directory (#15949, fixes #14820,
@anmonteiro) -
Reject package dependencies in named dependency bindings while decoding
dependency fields, including for disabled stanzas. (#15966, @rgrinberg) -
Fix Merlin definition lookup for libraries with private modules
(#15977, fixes #4892, @anmonteiro) -
Fix a crash when generating install rules for a Melange-only implementation
of an installed virtual library (#16033, @anmonteiro) -
Prevent build cancellation from crashing Dune when macOS reports
EPERM
while signaling a process group (#16059, fixes #16053, @rgrinberg) -
Fix
dune pkg outdatedso it fails early with a clear user message if it is
run when package management is not enabled. (#16065, @shonfeder) -
Fix watch mode builds remaining stale after the file watcher event queue
overflows (#16068, fixes #16052, @rgrinberg) -
Reject Windows path separators in validated filename components (#16076,
@rgrinberg) -
Preserve output following malformed ANSI escape sequences and erase-line
controls (#16116, @rgrinberg). -
Resolve relative paths passed to
dune ocaml top-modulefrom the directory
where Dune was started, allowing use from workspace subdirectories. (#16135,
@rgrinberg) -
Allow
dune ocaml topto accept absolute directory paths inside the
workspace. (#16142, @rgrinberg) -
Allow Dune promotion commands to accept absolute source paths inside the
workspace. (#16143, @rgrinberg) -
Allow
dune describe workspaceto accept absolute directory filters inside
the workspace. (#16144, @rgrinberg) -
Reject empty
module_systemsfields inmelange.emitstanzas instead of
silently producing no JavaScript files (#16162, @anmonteiro) -
Sandbox PPX lint actions starting with Dune language 3.25 so linters cannot
observe undeclared build targets. (#16176, @rgrinberg) -
Prevent diagnostic source locations at compact-position field boundaries from
being truncated (#16180, @rgrinberg) -
Sandbox
ocaml-mdx depswhen using MDX extension 0.6 so dependency
discovery cannot observe undeclared workspace inputs. (#16183, @rgrinberg) -
Fix missing Odoc generation of OxCaml parameter implementations (#16200, @art-w)
-
Make
Dune_rpc_lwt.V1.Action_plugin.read_directory_with_globreturn an empty listing
for absent directories (#16207, fixes #4445, @rgrinberg) -
Fix compiling Melange implementations of installed virtual libraries, both
with and without binary annotations, including transitive private module
dependencies (#16211, #16212, #16272, @anmonteiro) -
Run Ctypes stub generation in a sandbox and honor its declared dependencies.
(#16223, @rgrinberg) -
Fix
@opamfailing to promote a generated opam file af...
3.25.0~alpha0
CHANGES:
Fixed
-
Fix crashes when expanding module artifact pforms (
%{cmi:...}etc.) with
(include_subdirs qualified). Qualified modules can now be referenced by
dotted logical paths such as%{cmi:Sub_a.Foo}.
(#14498, #16214, fixes #14496, @Alizter, @anmonteiro) -
dune show targetsnow accepts build-only directories such as
_build/default/.simple.objs. (#14664, fixes #13782, @Alizter) -
Reword the error raised when
%{target}is used in a rule that omits the
(target ...)(or(targets ...)) field, so it points at the missing
field instead of mentioning "inferred rules". (#14668, fixes #12439,
@Alizter) -
Fix watch mode on Windows by creating the file-watcher sync directory before
using it, avoidingopen(_build/.sync\0): No such file or directorywhen an
RPC client requests a build. (#14678, fixes #14632, @rgrinberg) -
Add file watcher trace events for the Mac and Windows backends (#14722, @rgrinberg)
-
Fix decoding coalesced MacOS file notification events. (#14725, @rgrinberg)
-
Handle directory invalidations correctly in watch mode on MacOS (#14756, @rgrinberg)
-
Update ctime when restoring from the shared cache in copy mode. This prevents
the trimmer from deleting the file. (#14777, @rgrinberg) -
Allow the use of all the available variables in the
(enabled_if)field in
(executable ...)and(install ...)stanzas, similar to other stanzas like
(library ...). (#14860, fixes #14789, @punchagan) -
Linux: dune will now wait for the process group to be dead after the group
leader is dead. This tightens dune's policy for what constitutes
a successful action. Actions for which dune cannot be clean up the process
group will now fail. (@rgrinberg, #14868) -
Fix caching of package sources with symlinks by resolving symlinks after
fetching the sources, similar to the directory symlinks resolution introduced
in #13792 (#14871, fixes #14509, @punchagan) -
Fixed wrong suggestion for duplicate entries in
conflictsfield (#14956,
fixes #14903, @Leonidas-from-XIV) -
Fix building Dune on Solaris/illumos by handling its
wait4semantics
and retrying interrupted reads when spawning processes. (#14980, fixes #14182,
@jperkin) -
Fix
dune-rpc-lwtclients so disconnecting shuts down socket output
without invalidating pending input reads, avoidingEBADFerrors. (#14983,
fixes #7624, @rgrinberg) -
Dune now restores dependency cutoffs concurrently when they were originally
computed in parallel, instead of recomputing them one at a time. The
cutoffs_that_reduce_concurrency_in_watch_modesetting, which existed to
avoid this serialisation, is no longer needed and has been removed.
(#15012, @snowleopard) -
Validate project module names before creating the project directory in
dune init project, so aborted initializations no longer leave empty
directories behind. (#15014, fixes #9963, @rgrinberg) -
Fix cram test output sanitization when the project path contains a space.
Absolute paths are now rewritten to$TESTCASE_ROOTeven when the path
contains spaces, and lines with multiple paths have every path sanitized.
(#15017, fixes #14943, @yussypu) -
Improve the error message for private libraries that cannot be dependencies of
public libraries by mentioning the(package ...)field as an alternative to
giving the private library a public name (#15070, fixes #10230, @rgrinberg). -
Clarify the module conflict error shown when a module is used in multiple
stanzas. The message now explains implicit module ownership and lists all
relevant stanza kinds (#15072, fixes #6598, @rgrinberg). -
Emit relative artifact references in installed
dune-packagefiles when using
an absolute externalDUNE_BUILD_DIR, avoiding build-directory-dependent
archive and module paths (#15077, fixes #11774, @rgrinberg). -
Simplify away
(when false _)expressions (encodedNils) that previously
survived insideconcatandwhenforms, producing cleaner generated lock
directories. (#15092, fixes #15090, @chizy7) -
Drop
(when false _)arguments fromrunactions in generated lock
directories instead of keeping them as no-op entries that were re-encoded as
(when false ""). (#15128, fixes #15099, @chizy7) -
Make dune-configurator pass
--personalitytopkgconfonly for
version 1.7.0 and later. (#15142, fixes #11536, @dra27) -
dune utopnow accepts an absolute path to a workspace directory instead of
crashing with an internal error. (#15272, fixes #15108, @chizy7) -
Fix watch-mode status lines after source changes interrupt a build. Dune now
shows the restart status while cancelling the current build and resumes the
normal progress counter when the next build starts. (#15289, fixes #11134,
@rgrinberg) -
Short-circuit AND and OR expressions in blang. This makes their evaluation
lazy by default.
(#15291, @Sudha247) -
Fix the
%{ppx:ppx1+..+ppxn}form. Previously, it was just broken
and pointed at the wrong binary (#15361, @rgrinberg) -
Remove ppx runtime dependencies from the list of dependencies provided via
theroot_modulefield. If such a runtime dependency is needed, it should be
written in thelibrariesfield. (#15419, @rgrinberg) -
Avoid rebuilding
js_of_ocamllibrary archives on every invocation for
interface-only and empty libraries. (#15427, @anmonteiro) -
Do not crash when
~/.config/duneis a file instead of a directory. Just
pretend it doesn't exist (#15475, fixes #15406, @rgrinberg) -
Dune will now terminate all launched sub-processes even if it received
SIGKILLitself (#15483, @rgrinberg) -
Account for
ctimein stat based digest cache (#15495, @rgrinberg) -
$ dune install --dry-runnow checks for non empty directories as part of its
validation (#15501, @rgrinberg) -
Fix a target-less rule attached to multiple aliases (
(rule (aliases a b) ...)) leaking unrelated contributions between those aliases. Building one
alias no longer pulls in actions or dependencies that were added only to
another of the rule's aliases. (#15581, @NatKarmios) -
Make
dune pkg enabledquery a running Dune RPC server, so it observes
transient server-side--pkg enabledand--pkg disabledsettings without
trying to acquire the build lock (#15589, fixes #15587, @Alizter) -
Make generated MDX executables inherit
link_flagsfromenvstanzas.
(#15614, fixes #15613, @Alizter) -
Return Unix errors from
Fs_io.read_filerather than raising them. (#15641,
@rgrinberg) -
Correct filesystem trace metrics for file writes and directory scans.
(#15686, @rgrinberg) -
Preserve runtime-event ring IDs in Dune traces so consumers can distinguish
interleaved event streams. (#15687, @rgrinberg) -
BREAKING CHANGE: in dune-project, (warnings (duplicate_deps ..)) requires
a dune lang version of 3.22, instead of 3.18 (#15696, @v-gb). -
Preserve spaces in unquoted filenames when applying Git patches instead of
truncating paths at the first space (#15781, @rgrinberg) -
Respect
enabled_ifoninstallstanzas when adding their files and
directories to the@allalias. (#15895, fixes #15825, @aryemans) -
Fix Melange emission with installed libraries whose
.cmjand.cmifiles
are stored in themelangeobject directory (#15949, fixes #14820,
@anmonteiro) -
Reject package dependencies in named dependency bindings while decoding
dependency fields, including for disabled stanzas. (#15966, @rgrinberg) -
Fix Merlin definition lookup for libraries with private modules
(#15977, fixes #4892, @anmonteiro) -
Fix a crash when generating install rules for a Melange-only implementation
of an installed virtual library (#16033, @anmonteiro) -
Prevent build cancellation from crashing Dune when macOS reports
EPERM
while signaling a process group (#16059, fixes #16053, @rgrinberg) -
Fix
dune pkg outdatedso it fails early with a clear user message if it is
run when package management is not enabled. (#16065, @shonfeder) -
Fix watch mode builds remaining stale after the file watcher event queue
overflows (#16068, fixes #16052, @rgrinberg) -
Reject Windows path separators in validated filename components (#16076,
@rgrinberg) -
Preserve output following malformed ANSI escape sequences and erase-line
controls (#16116, @rgrinberg). -
Resolve relative paths passed to
dune ocaml top-modulefrom the directory
where Dune was started, allowing use from workspace subdirectories. (#16135,
@rgrinberg) -
Allow
dune ocaml topto accept absolute directory paths inside the
workspace. (#16142, @rgrinberg) -
Allow Dune promotion commands to accept absolute source paths inside the
workspace. (#16143, @rgrinberg) -
Allow
dune describe workspaceto accept absolute directory filters inside
the workspace. (#16144, @rgrinberg) -
Reject empty
module_systemsfields inmelange.emitstanzas instead of
silently producing no JavaScript files (#16162, @anmonteiro) -
Sandbox PPX lint actions starting with Dune language 3.25 so linters cannot
observe undeclared build targets. (#16176, @rgrinberg) -
Prevent diagnostic source locations at compact-position field boundaries from
being truncated (#16180, @rgrinberg) -
Sandbox
ocaml-mdx depswhen using MDX extension 0.6 so dependency
discovery cannot observe undeclared workspace inputs. (#16183, @rgrinberg) -
Fix missing Odoc generation of OxCaml parameter implementations (#16200, @art-w)
-
Make
Dune_rpc_lwt.V1.Action_plugin.read_directory_with_globreturn an empty listing
for absent directories (#16207, fixes #4445, @rgrinberg) -
Fix compiling Melange implementations of installed virtual libraries, both
with and without binary annotations, including transitive private module
dependencies (#16211, #16212, #16272, @anmonteiro) -
Run Ctypes stub generation in a sandbox and honor its declared dependencies.
(#16223, @rgrinberg) -
Fix
@opamfailing to promote a generated opam file af...
3.24.2
CHANGES:
Fixed
-
Add the implicit
unixdependency required by MDX 2.6 and later to
generated MDX test executables (#15592, @avsm) -
Rescan the RPC registry when its directory mtime changes, allowing clients
that poll before Dune registers to discover the new instance (#15634, fixes
#15630, @rgrinberg)
3.24.1
CHANGES:
Fixed
-
Fix an internal error (
modules_and_obj_dir: failed lookup) when generating
js_of_ocamlarchive rules for a dune file that defines two libraries with
the same name distinguished by mutually exclusiveenabled_ifclauses, as
ocaml-redoes forppx_expect_common(#14904, fixes #14775, @vouillon) -
Fix passing environment variables to formatter actions (#15386, @anmonteiro)
-
Fix missing source dependency in the sandbox when preprocessing Melange
sources (#15395, @anmonteiro) -
Treat OCaml compiler packages version 5.5 or newer as relocatable so their
installations do not use the toolchain cache (#15444, fixes #15443, @Alizter) -
Fix
build_runtime_flagsgiven in ajs_of_ocaml/wasm_of_ocamlfield of
an executable being silently ignored in separate compilation mode: such
executables were given the workspace-shared standalone runtime, which is
built with the default flags. Executables customizingbuild_runtime_flags
now get their own standalone runtime again. (#15455, @hhugo) -
Use installed filenames for local package binaries in
%{bin:...}PATH
layouts on Windows (#15518, fixes #15512, @Alizter)
Changed
- Revert sandboxing Melange rules by default in the
(library ..)and
(melange.emit ..)stanzas. In Melange libraries with many modules, sandbox
creation / destruction dominates build time and adds significant overhead to
build time (#15418, @anmonteiro)
3.24.0
CHANGES:
Fixed
-
Fix promotion failure when a target changes from a directory to a file
between builds, causing "Is a directory" errors.
(#14371, fixes #5647, fixes #6575, @Alizter) -
Make
dune build @docpick up an odoc installed viadune tools install odoceven withoutDUNE_CONFIG__LOCK_DEV_TOOL=enabled, mirroring how
dune fmtconsumes a locked ocamlformat (#14426, fixes #14235, @mt-caret) -
Reject
(package ...)inside a named dependency binding
((deps (:name (package foo)))). Previously this was silently accepted but
%{name}would resolve to an empty path list. (#14499, @Alizter) -
Fix incorrect dependency in the
.cmxsbuild for libraries with
mode-dependent foreign stubs: the rule depended on the byte stubs archive
instead of the native one, so parallel builds could fail to find
-l<lib>_stubs_native. (#14500, fixes #12964, @Alizter) -
Fix
dune buildfailing with "No rule found" whenlock_dirpaths in
dune-workspacecontain a subdirectory (e.g.(path sub/dune.lock)).
(#14524, fixes #14523, @Alizter) -
Artifact substitution repairs executable bit if it's not set correctly in the workspace
(#14556, @rgrinberg) -
Ignore
EINVALwhen accepting sockets on MacOS (#14612, fixes #12660, @rgrinberg) -
Validate profile names. Profile names must be non-empty and can only contain
letters, digits,_and-. The name_is reserved as a wildcard in
(env ...)stanzas. (#14657, fixes #14630, @rlepigre)
Added
-
Add
%{pkg:<package>:<section>:<path>}pform for resolving package install
files. Works with workspace packages, lock-file packages, and installed
packages. (#14200, fixes #14193, fixes #3378, @Alizter) -
Enable the relocatable compiler by default for package management (#14357,
fixes #14012, @Alizter) -
Add changed source files to the
build-starttrace event for watch-mode
restarts, showing the paths that triggered the rebuild (#14396, @rgrinberg) -
Add dune's rusage information in start/finish build trace events (#14402, @rgrinberg)
-
Add a status message for RPC clients that manage to connect (#14424, @rgrinberg)
-
Allow blang expressions in the
runtest_aliasfield in thecramstanza (#14425, @rgrinberg) -
Extend the stat based cache to cache the contents of directories and not just
source files (#14469, @rgrinberg). -
Show the number of connected RPC clients in the watch mode status line
(#14489, @rgrinberg) -
Promote directory targets from experimental to generally available in 3.24
(#14579, @rgrinberg)
Changed
-
Use
/as directory separator when appending local paths to external paths,
making path construction consistent across platforms. (#14278, @Alizter) -
On Windows, normalise process paths to
\before passing them to
CreateProcessWso that programs which scanargv[0](notablycmd.exe)
do not misparse mixed separators. (#14278, @Alizter) -
%{bin:NAME}now resolves to the build artifact path rather than
the install staging path. Rules with%{bin:NAME}deps additionally
get a per-rule.binariesdirectory prepended to the action's
PATH, containing correctly-named symlinks for each declared bin
pform dep. (#14432, fixes #3324, @Alizter) -
Replace the Rocq language field
(stdlib ...)with the presence-only field
(no_corelib)in Rocq language 0.14. (#14452, fixes #14358, @Durbatuluk1701) -
Throttle sandbox creation to 250 concurrent sandboxes. (#14464, @rgrinberg)
-
The package solver now uses cached revision store lookups for improved
performance. (#14494, fixes #12637, @Alizter, @rgrinberg) -
Remove the deprecated
(lang coq)Coq Build Language. Use the
Rocq Build Language ((using rocq <version>)) instead. Projects that
still declare(using coq <version>)now get an error pointing them
at Rocq. (#14525, fixes #12788, @Alizter)
3.24.0~alpha2
CHANGES:
Fixed
-
Fix promotion failure when a target changes from a directory to a file
between builds, causing "Is a directory" errors.
(#14371, fixes #5647, fixes #6575, @Alizter) -
Make
dune build @docpick up an odoc installed viadune tools install odoceven withoutDUNE_CONFIG__LOCK_DEV_TOOL=enabled, mirroring how
dune fmtconsumes a locked ocamlformat (#14426, fixes #14235, @mt-caret) -
Reject
(package ...)inside a named dependency binding
((deps (:name (package foo)))). Previously this was silently accepted but
%{name}would resolve to an empty path list. (#14499, @Alizter) -
Fix incorrect dependency in the
.cmxsbuild for libraries with
mode-dependent foreign stubs: the rule depended on the byte stubs archive
instead of the native one, so parallel builds could fail to find
-l<lib>_stubs_native. (#14500, fixes #12964, @Alizter) -
Fix
dune buildfailing with "No rule found" whenlock_dirpaths in
dune-workspacecontain a subdirectory (e.g.(path sub/dune.lock)).
(#14524, fixes #14523, @Alizter) -
Artifact substitution repairs executable bit if it's not set correctly in the workspace
(#14556, @rgrinberg) -
Ignore
EINVALwhen accepting sockets on MacOS (#14612, fixes #12660, @rgrinberg) -
Validate profile names. Profile names must be non-empty and can only contain
letters, digits,_and-. The name_is reserved as a wildcard in
(env ...)stanzas. (#14657, fixes #14630, @rlepigre)
Added
-
Add
%{pkg:<package>:<section>:<path>}pform for resolving package install
files. Works with workspace packages, lock-file packages, and installed
packages. (#14200, fixes #14193, fixes #3378, @Alizter) -
Enable the relocatable compiler by default for package management (#14357,
fixes #14012, @Alizter) -
Add changed source files to the
build-starttrace event for watch-mode
restarts, showing the paths that triggered the rebuild (#14396, @rgrinberg) -
Add dune's rusage information in start/finish build trace events (#14402, @rgrinberg)
-
Add a status message for RPC clients that manage to connect (#14424, @rgrinberg)
-
Allow blang expressions in the
runtest_aliasfield in thecramstanza (#14425, @rgrinberg) -
Extend the stat based cache to cache the contents of directories and not just
source files (#14469, @rgrinberg). -
Show the number of connected RPC clients in the watch mode status line
(#14489, @rgrinberg) -
Promote directory targets from experimental to generally available in 3.24
(#14579, @rgrinberg)
Changed
-
Use
/as directory separator when appending local paths to external paths,
making path construction consistent across platforms. (#14278, @Alizter) -
On Windows, normalise process paths to
\before passing them to
CreateProcessWso that programs which scanargv[0](notablycmd.exe)
do not misparse mixed separators. (#14278, @Alizter) -
%{bin:NAME}now resolves to the build artifact path rather than
the install staging path. Rules with%{bin:NAME}deps additionally
get a per-rule.binariesdirectory prepended to the action's
PATH, containing correctly-named symlinks for each declared bin
pform dep. (#14432, fixes #3324, @Alizter) -
Replace the Rocq language field
(stdlib ...)with the presence-only field
(no_corelib)in Rocq language 0.14. (#14452, fixes #14358, @Durbatuluk1701) -
Throttle sandbox creation to 250 concurrent sandboxes. (#14464, @rgrinberg)
-
The package solver now uses cached revision store lookups for improved
performance. (#14494, fixes #12637, @Alizter, @rgrinberg) -
Remove the deprecated
(lang coq)Coq Build Language. Use the
Rocq Build Language ((using rocq <version>)) instead. Projects that
still declare(using coq <version>)now get an error pointing them
at Rocq. (#14525, fixes #12788, @Alizter)
3.24.0~alpha1
CHANGES:
Fixed
-
Fix promotion failure when a target changes from a directory to a file
between builds, causing "Is a directory" errors.
(#14371, fixes #5647, fixes #6575, @Alizter) -
Make
dune build @docpick up an odoc installed viadune tools install odoceven withoutDUNE_CONFIG__LOCK_DEV_TOOL=enabled, mirroring how
dune fmtconsumes a locked ocamlformat (#14426, fixes #14235, @mt-caret) -
Reject
(package ...)inside a named dependency binding
((deps (:name (package foo)))). Previously this was silently accepted but
%{name}would resolve to an empty path list. (#14499, @Alizter) -
Fix incorrect dependency in the
.cmxsbuild for libraries with
mode-dependent foreign stubs: the rule depended on the byte stubs archive
instead of the native one, so parallel builds could fail to find
-l<lib>_stubs_native. (#14500, fixes #12964, @Alizter) -
Fix
dune buildfailing with "No rule found" whenlock_dirpaths in
dune-workspacecontain a subdirectory (e.g.(path sub/dune.lock)).
(#14524, fixes #14523, @Alizter) -
Artifact substitution repairs executable bit if it's not set correctly in the workspace
(#14556, @rgrinberg) -
Ignore
EINVALwhen accepting sockets on MacOS (#14612, fixes #12660, @rgrinberg) -
Validate profile names. Profile names must be non-empty and can only contain
letters, digits,_and-. The name_is reserved as a wildcard in
(env ...)stanzas. (#14657, fixes #14630, @rlepigre)
Added
-
Add
%{pkg:<package>:<section>:<path>}pform for resolving package install
files. Works with workspace packages, lock-file packages, and installed
packages. (#14200, fixes #14193, fixes #3378, @Alizter) -
Enable the relocatable compiler by default for package management (#14357,
fixes #14012, @Alizter) -
Add changed source files to the
build-starttrace event for watch-mode
restarts, showing the paths that triggered the rebuild (#14396, @rgrinberg) -
Add dune's rusage information in start/finish build trace events (#14402, @rgrinberg)
-
Add a status message for RPC clients that manage to connect (#14424, @rgrinberg)
-
Allow blang expressions in the
runtest_aliasfield in thecramstanza (#14425, @rgrinberg) -
Extend the stat based cache to cache the contents of directories and not just
source files (#14469, @rgrinberg). -
Show the number of connected RPC clients in the watch mode status line
(#14489, @rgrinberg) -
Promote directory targets from experimental to generally available in 3.24
(#14579, @rgrinberg)
Changed
-
Use
/as directory separator when appending local paths to external paths,
making path construction consistent across platforms. (#14278, @Alizter) -
On Windows, normalise process paths to
\before passing them to
CreateProcessWso that programs which scanargv[0](notablycmd.exe)
do not misparse mixed separators. (#14278, @Alizter) -
%{bin:NAME}now resolves to the build artifact path rather than
the install staging path. Rules with%{bin:NAME}deps additionally
get a per-rule.binariesdirectory prepended to the action's
PATH, containing correctly-named symlinks for each declared bin
pform dep. (#14432, fixes #3324, @Alizter) -
Replace the Rocq language field
(stdlib ...)with the presence-only field
(no_corelib)in Rocq language 0.14. (#14452, fixes #14358, @Durbatuluk1701) -
Throttle sandbox creation to 250 concurrent sandboxes. (#14464, @rgrinberg)
-
The package solver now uses cached revision store lookups for improved
performance. (#14494, fixes #12637, @Alizter, @rgrinberg) -
Remove the deprecated
(lang coq)Coq Build Language. Use the
Rocq Build Language ((using rocq <version>)) instead. Projects that
still declare(using coq <version>)now get an error pointing them
at Rocq. (#14525, fixes #12788, @Alizter)
3.24.0~alpha0
CHANGES:
Fixed
-
Fix promotion failure when a target changes from a directory to a file
between builds, causing "Is a directory" errors.
(#14371, fixes #5647, fixes #6575, @Alizter) -
Make
dune build @docpick up an odoc installed viadune tools install odoceven withoutDUNE_CONFIG__LOCK_DEV_TOOL=enabled, mirroring how
dune fmtconsumes a locked ocamlformat (#14426, fixes #14235, @mt-caret) -
Reject
(package ...)inside a named dependency binding
((deps (:name (package foo)))). Previously this was silently accepted but
%{name}would resolve to an empty path list. (#14499, @Alizter) -
Fix incorrect dependency in the
.cmxsbuild for libraries with
mode-dependent foreign stubs: the rule depended on the byte stubs archive
instead of the native one, so parallel builds could fail to find
-l<lib>_stubs_native. (#14500, fixes #12964, @Alizter) -
Fix
dune buildfailing with "No rule found" whenlock_dirpaths in
dune-workspacecontain a subdirectory (e.g.(path sub/dune.lock)).
(#14524, fixes #14523, @Alizter) -
Artifact substitution repairs executable bit if it's not set correctly in the workspace
(#14556, @rgrinberg) -
Ignore
EINVALwhen accepting sockets on MacOS (#14612, fixes #12660, @rgrinberg) -
Validate profile names. Profile names must be non-empty and can only contain
letters, digits,_and-. The name_is reserved as a wildcard in
(env ...)stanzas. (#14657, fixes #14630, @rlepigre)
Added
-
Add
%{pkg:<package>:<section>:<path>}pform for resolving package install
files. Works with workspace packages, lock-file packages, and installed
packages. (#14200, fixes #14193, fixes #3378, @Alizter) -
Enable the relocatable compiler by default for package management (#14357,
fixes #14012, @Alizter) -
Add changed source files to the
build-starttrace event for watch-mode
restarts, showing the paths that triggered the rebuild (#14396, @rgrinberg) -
Add dune's rusage information in start/finish build trace events (#14402, @rgrinberg)
-
Add a status message for RPC clients that manage to connect (#14424, @rgrinberg)
-
Allow blang expressions in the
runtest_aliasfield in thecramstanza (#14425, @rgrinberg) -
Extend the stat based cache to cache the contents of directories and not just
source files (#14469, @rgrinberg). -
Show the number of connected RPC clients in the watch mode status line
(#14489, @rgrinberg) -
Promote directory targets from experimental to generally available in 3.24
(#14579, @rgrinberg)
Changed
-
Use
/as directory separator when appending local paths to external paths,
making path construction consistent across platforms. (#14278, @Alizter) -
On Windows, normalise process paths to
\before passing them to
CreateProcessWso that programs which scanargv[0](notablycmd.exe)
do not misparse mixed separators. (#14278, @Alizter) -
%{bin:NAME}now resolves to the build artifact path rather than
the install staging path. Rules with%{bin:NAME}deps additionally
get a per-rule.binariesdirectory prepended to the action's
PATH, containing correctly-named symlinks for each declared bin
pform dep. (#14432, fixes #3324, @Alizter) -
Replace the Rocq language field
(stdlib ...)with the presence-only field
(no_corelib)in Rocq language 0.14. (#14452, fixes #14358, @Durbatuluk1701) -
Throttle sandbox creation to 250 concurrent sandboxes. (#14464, @rgrinberg)
-
The package solver now uses cached revision store lookups for improved
performance. (#14494, fixes #12637, @Alizter, @rgrinberg) -
Remove the deprecated
(lang coq)Coq Build Language. Use the
Rocq Build Language ((using rocq <version>)) instead. Projects that
still declare(using coq <version>)now get an error pointing them
at Rocq. (#14525, fixes #12788, @Alizter)
3.23.1
CHANGES:
Fixed
-
Fix the
menhiropam dependency injection introduced in 3.23. Dune
now only fills in the lower bound{>= "20180523"}on an existing
user-declaredmenhirdependency; it no longer addsmenhiras a
new dependency to packages that did not declare it themselves.
(#14434, fixes #14428, @robinbb) -
Gate the
duneversion-bound deduplication in generated opam files
(introduced in 3.23) on(lang dune 3.23). Projects at earlier lang
versions get the priorAnd [...]shape — e.g.
{>= "3.17" & >= "3.20"}— restoring 3.22 behaviour and avoiding a
silent change to opam output on dune-binary upgrade. (#14436,
@robinbb) -
Preserve library order when building a shared jsoo standalone runtime.
(#14438, @vouillon) -
Fix the fallback to the secondary compiler, allowing recovering of support for
packages with upper bounds on OCaml less than 4.14. Packages depending on dune
3.23.1 or later and with an upper bound on the OCaml compiler that is less
than 4.14, will now be able to use the latest dune, but dune will be built
with the secondary compiler at version 4.14. (#14443, @Alizter) -
Fix the bootstrap on NetBSD by including
<sys/wait.h>inlev_stubs.c,
matching the existing FreeBSD/OpenBSD guard.
(#14512, fixes #14484, @0-wiz-0)