Skip to content

Releases

3.25.0

Choose a tag to compare

@shonfeder shonfeder released this 12 Nov 04:46
b845053

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 targets now 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, avoiding open(_build/.sync\0): No such file or directory when 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 conflicts field (#14956,
    fixes #14903, @Leonidas-from-XIV)

  • Fix building Dune on Solaris/illumos by handling its wait4 semantics
    and retrying interrupted reads when spawning processes. (#14980, fixes #14182,
    @jperkin)

  • Fix dune-rpc-lwt clients so disconnecting shuts down socket output
    without invalidating pending input reads, avoiding EBADF errors. (#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_mode setting, 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_ROOT even 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-package files when using
    an absolute external DUNE_BUILD_DIR, avoiding build-directory-dependent
    archive and module paths (#15077, fixes #11774, @rgrinberg).

  • Simplify away (when false _) expressions (encoded Nils) that previously
    survived inside concat and when forms, producing cleaner generated lock
    directories. (#15092, fixes #15090, @chizy7)

  • Drop (when false _) arguments from run actions 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 --personality to pkgconf only for
    version 1.7.0 and later. (#15142, fixes #11536, @dra27)

  • dune utop now 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
    the root_module field. If such a runtime dependency is needed, it should be
    written in the libraries field. (#15419, @rgrinberg)

  • Avoid rebuilding js_of_ocaml library archives on every invocation for
    interface-only and empty libraries. (#15427, @anmonteiro)

  • Do not crash when ~/.config/dune is 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
    SIGKILL itself (#15483, @rgrinberg)

  • Account for ctime in stat based digest cache (#15495, @rgrinberg)

  • $ dune install --dry-run now 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 enabled query a running Dune RPC server, so it observes
    transient server-side --pkg enabled and --pkg disabled settings without
    trying to acquire the build lock (#15589, fixes #15587, @Alizter)

  • Make generated MDX executables inherit link_flags from env stanzas.
    (#15614, fixes #15613, @Alizter)

  • Return Unix errors from Fs_io.read_file rather 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_if on install stanzas when adding their files and
    directories to the @all alias. (#15895, fixes #15825, @aryemans)

  • Fix Melange emission with installed libraries whose .cmj and .cmi files
    are stored in the melange object 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 outdated so 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-module from the directory
    where Dune was started, allowing use from workspace subdirectories. (#16135,
    @rgrinberg)

  • Allow dune ocaml top to 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 workspace to accept absolute directory filters inside
    the workspace. (#16144, @rgrinberg)

  • Reject empty module_systems fields in melange.emit stanzas 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 deps when 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_glob return 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 @opam failing to promote a generated opam file af...

Read more

3.25.0~alpha1

3.25.0~alpha1 Pre-release
Pre-release

Choose a tag to compare

@shonfeder shonfeder released this 03 Nov 01:41
b09968b

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 targets now 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, avoiding open(_build/.sync\0): No such file or directory when 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 conflicts field (#14956,
    fixes #14903, @Leonidas-from-XIV)

  • Fix building Dune on Solaris/illumos by handling its wait4 semantics
    and retrying interrupted reads when spawning processes. (#14980, fixes #14182,
    @jperkin)

  • Fix dune-rpc-lwt clients so disconnecting shuts down socket output
    without invalidating pending input reads, avoiding EBADF errors. (#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_mode setting, 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_ROOT even 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-package files when using
    an absolute external DUNE_BUILD_DIR, avoiding build-directory-dependent
    archive and module paths (#15077, fixes #11774, @rgrinberg).

  • Simplify away (when false _) expressions (encoded Nils) that previously
    survived inside concat and when forms, producing cleaner generated lock
    directories. (#15092, fixes #15090, @chizy7)

  • Drop (when false _) arguments from run actions 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 --personality to pkgconf only for
    version 1.7.0 and later. (#15142, fixes #11536, @dra27)

  • dune utop now 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
    the root_module field. If such a runtime dependency is needed, it should be
    written in the libraries field. (#15419, @rgrinberg)

  • Avoid rebuilding js_of_ocaml library archives on every invocation for
    interface-only and empty libraries. (#15427, @anmonteiro)

  • Do not crash when ~/.config/dune is 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
    SIGKILL itself (#15483, @rgrinberg)

  • Account for ctime in stat based digest cache (#15495, @rgrinberg)

  • $ dune install --dry-run now 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 enabled query a running Dune RPC server, so it observes
    transient server-side --pkg enabled and --pkg disabled settings without
    trying to acquire the build lock (#15589, fixes #15587, @Alizter)

  • Make generated MDX executables inherit link_flags from env stanzas.
    (#15614, fixes #15613, @Alizter)

  • Return Unix errors from Fs_io.read_file rather 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_if on install stanzas when adding their files and
    directories to the @all alias. (#15895, fixes #15825, @aryemans)

  • Fix Melange emission with installed libraries whose .cmj and .cmi files
    are stored in the melange object 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 outdated so 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-module from the directory
    where Dune was started, allowing use from workspace subdirectories. (#16135,
    @rgrinberg)

  • Allow dune ocaml top to 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 workspace to accept absolute directory filters inside
    the workspace. (#16144, @rgrinberg)

  • Reject empty module_systems fields in melange.emit stanzas 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 deps when 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_glob return 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 @opam failing to promote a generated opam file af...

Read more

3.25.0~alpha0

3.25.0~alpha0 Pre-release
Pre-release

Choose a tag to compare

@shonfeder shonfeder released this 02 Oct 00:25
96db197

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 targets now 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, avoiding open(_build/.sync\0): No such file or directory when 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 conflicts field (#14956,
    fixes #14903, @Leonidas-from-XIV)

  • Fix building Dune on Solaris/illumos by handling its wait4 semantics
    and retrying interrupted reads when spawning processes. (#14980, fixes #14182,
    @jperkin)

  • Fix dune-rpc-lwt clients so disconnecting shuts down socket output
    without invalidating pending input reads, avoiding EBADF errors. (#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_mode setting, 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_ROOT even 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-package files when using
    an absolute external DUNE_BUILD_DIR, avoiding build-directory-dependent
    archive and module paths (#15077, fixes #11774, @rgrinberg).

  • Simplify away (when false _) expressions (encoded Nils) that previously
    survived inside concat and when forms, producing cleaner generated lock
    directories. (#15092, fixes #15090, @chizy7)

  • Drop (when false _) arguments from run actions 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 --personality to pkgconf only for
    version 1.7.0 and later. (#15142, fixes #11536, @dra27)

  • dune utop now 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
    the root_module field. If such a runtime dependency is needed, it should be
    written in the libraries field. (#15419, @rgrinberg)

  • Avoid rebuilding js_of_ocaml library archives on every invocation for
    interface-only and empty libraries. (#15427, @anmonteiro)

  • Do not crash when ~/.config/dune is 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
    SIGKILL itself (#15483, @rgrinberg)

  • Account for ctime in stat based digest cache (#15495, @rgrinberg)

  • $ dune install --dry-run now 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 enabled query a running Dune RPC server, so it observes
    transient server-side --pkg enabled and --pkg disabled settings without
    trying to acquire the build lock (#15589, fixes #15587, @Alizter)

  • Make generated MDX executables inherit link_flags from env stanzas.
    (#15614, fixes #15613, @Alizter)

  • Return Unix errors from Fs_io.read_file rather 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_if on install stanzas when adding their files and
    directories to the @all alias. (#15895, fixes #15825, @aryemans)

  • Fix Melange emission with installed libraries whose .cmj and .cmi files
    are stored in the melange object 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 outdated so 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-module from the directory
    where Dune was started, allowing use from workspace subdirectories. (#16135,
    @rgrinberg)

  • Allow dune ocaml top to 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 workspace to accept absolute directory filters inside
    the workspace. (#16144, @rgrinberg)

  • Reject empty module_systems fields in melange.emit stanzas 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 deps when 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_glob return 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 @opam failing to promote a generated opam file af...

Read more

3.24.2

Choose a tag to compare

@Alizter Alizter released this 03 Aug 11:28
ce734ac

CHANGES:

Fixed

  • Add the implicit unix dependency 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

Choose a tag to compare

@Alizter Alizter released this 21 Jul 07:59
a5d7d32

CHANGES:

Fixed

  • Fix an internal error (modules_and_obj_dir: failed lookup) when generating
    js_of_ocaml archive rules for a dune file that defines two libraries with
    the same name distinguished by mutually exclusive enabled_if clauses, as
    ocaml-re does for ppx_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_flags given in a js_of_ocaml/wasm_of_ocaml field 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 customizing build_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

Choose a tag to compare

@shonfeder shonfeder released this 21 Jun 20:57
47f64de

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 @doc pick up an odoc installed via dune tools install odoc even without DUNE_CONFIG__LOCK_DEV_TOOL=enabled, mirroring how
    dune fmt consumes 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 .cmxs build 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 build failing with "No rule found" when lock_dir paths in
    dune-workspace contain 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 EINVAL when 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-start trace 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_alias field in the cram stanza (#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
    CreateProcessW so that programs which scan argv[0] (notably cmd.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 .binaries directory 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

3.24.0~alpha2 Pre-release
Pre-release

Choose a tag to compare

@shonfeder shonfeder released this 05 Jun 21:20
5ec5013

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 @doc pick up an odoc installed via dune tools install odoc even without DUNE_CONFIG__LOCK_DEV_TOOL=enabled, mirroring how
    dune fmt consumes 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 .cmxs build 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 build failing with "No rule found" when lock_dir paths in
    dune-workspace contain 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 EINVAL when 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-start trace 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_alias field in the cram stanza (#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
    CreateProcessW so that programs which scan argv[0] (notably cmd.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 .binaries directory 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

3.24.0~alpha1 Pre-release
Pre-release

Choose a tag to compare

@shonfeder shonfeder released this 05 Jun 21:01
Immutable release. Only release title and notes can be modified.
a55a057

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 @doc pick up an odoc installed via dune tools install odoc even without DUNE_CONFIG__LOCK_DEV_TOOL=enabled, mirroring how
    dune fmt consumes 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 .cmxs build 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 build failing with "No rule found" when lock_dir paths in
    dune-workspace contain 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 EINVAL when 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-start trace 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_alias field in the cram stanza (#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
    CreateProcessW so that programs which scan argv[0] (notably cmd.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 .binaries directory 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

Choose a tag to compare

@shonfeder shonfeder released this 28 May 19:02
f3eabc3

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 @doc pick up an odoc installed via dune tools install odoc even without DUNE_CONFIG__LOCK_DEV_TOOL=enabled, mirroring how
    dune fmt consumes 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 .cmxs build 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 build failing with "No rule found" when lock_dir paths in
    dune-workspace contain 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 EINVAL when 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-start trace 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_alias field in the cram stanza (#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
    CreateProcessW so that programs which scan argv[0] (notably cmd.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 .binaries directory 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

Choose a tag to compare

@shonfeder shonfeder released this 14 May 20:36
6f6eee6

CHANGES:

Fixed

  • Fix the menhir opam dependency injection introduced in 3.23. Dune
    now only fills in the lower bound {>= "20180523"} on an existing
    user-declared menhir dependency; it no longer adds menhir as a
    new dependency to packages that did not declare it themselves.
    (#14434, fixes #14428, @robinbb)

  • Gate the dune version-bound deduplication in generated opam files
    (introduced in 3.23) on (lang dune 3.23). Projects at earlier lang
    versions get the prior And [...] 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> in lev_stubs.c,
    matching the existing FreeBSD/OpenBSD guard.
    (#14512, fixes #14484, @0-wiz-0)