Repository activity
40458 results across all weeks
refactor(formatting): keep correction assembly in Format_generated
Undo the action-expansion preparation from #17116 now that dialect formatter actions are out of scope for automatic correction formatting. OCamlFormat and Dune’s built-in formatter do not need to expand user actions, so move the format-then-diff helper back to Format_generated and make formatter selection private again.
Rudi Grinberg (@rgrinberg)refactor(formatting): move correction action assembly into action expansion
Move the existing format-then-diff construction into Action_unexpanded, where both diff? and Cinaps can use it. Keep formatter selection in Format_generated, and separate constructing a targetless action expansion from running it. This prepares for #17113 without changing formatter selection, dependencies, or version gates.
Rudi Grinberg (@rgrinberg)refactor(formatting): prepare internal correction action builders
Separate the inline-test run from its correction diffs as full actions, and share the plain correction diff builder between PPX preprocessing and linting. This separates the action assembly from the formatting change in #17120 without changing execution order or formatting behavior.
Rudi Grinberg (@rgrinberg)refactor(jsoo): share runtime dependency arguments
Use one helper to build runtime dependency arguments for executable compilation and standalone runtime generation. Both paths keep the same library runtime files and stanza-specific files in the same order.
Rudi Grinberg (@rgrinberg)refactor(lib): share dependency traversal state
Use the same state monad for virtual-library substitution and re-export traversal. Each traversal still maintains its own accumulated libraries and visited set.
Rudi Grinberg (@rgrinberg)refactor(memo): share parallel collection error handling
Share error handling between fixed-size and dynamic parallel dependency collection. Disabled collectors keep their error boundary, and active collectors still record dependencies before re-raising errors.
Rudi Grinberg (@rgrinberg)refactor(odoc): extract library naming and parent-id computation into Odoc_scope
Continuation of the first step of moving Dune's odoc rules to the odoc 3 / odoc-driver layout. No behavior change.
Tim ats (@Tim-ats-d)refactor(odoc): generate .odoc files under parent-id folders
Second step towards the odoc 3 / odoc-driver layout. Depends on https://github.com/ocaml/dune/pull/17070: only the last 5 commits are new.
Tim ats (@Tim-ats-d)refactor(pkg): defer package resolution until action evaluation
Builds on the independent baseline test in #17048.
Rudi Grinberg (@rgrinberg)refactor(pkg): defer source dependency validation
Evaluate source dependencies while recording action dependencies, rather than before package resolution and command expansion.
Rudi Grinberg (@rgrinberg)refactor(pkg): generate source rules from package metadata
Pass paths and lockfile metadata directly to source_rules instead of a resolved Pkg.t, narrowing its inputs to the data it actually uses.
Rudi Grinberg (@rgrinberg)refactor(pkg): keep resolved package environments immutable
Make the package record's exported_env field immutable. Return a record update after expansion instead of assigning to the provisional record.
Rudi Grinberg (@rgrinberg)refactor(pkg): load package rules together
Generate dependency-package rules together at the .pkg root, with descendant directories redirecting to their parent. Package paths and per-file local-source copy rules remain unchanged.
Rudi Grinberg (@rgrinberg)refactor(pkg): read install cookies directly
Replace the one-field Pkg_installed wrapper with Install_cookie.read, which returns the cookie action builder directly. Update dependency artifact discovery, toolchain loading, and installed-file lookup to use it.
Rudi Grinberg (@rgrinberg)refactor(pkg): remove pkg digests
Replace package digests with name-based keys and build paths in isolated project and dev-tool universes. Remove dune pkg print-digest and cross-universe dependency sharing.
Ali Caglayan (@Alizter)refactor(pkg): remove redundant resolved package digest
Construct package paths using the digest already passed to setup_package_rules, rather than reading it back from the resolved package. Remove the redundant Pkg.t.pkg_digest field and its initialization.
Rudi Grinberg (@rgrinberg)refactor(pkg): remove the duplicate package build target
Remove the target-directory declaration from build_rule. gen_rules already discards the helper's target metadata and declares the directory when registering the rule.
Rudi Grinberg (@rgrinberg)refactor(pkg): remove the legacy compiler toolchain cache
Install locked compilers in _build like other packages. Relocatable compilers
Ali Caglayan (@Alizter)refactor(pkg): remove the substitution expander forward reference
Define the package expander before the substitution action so substitution can call expand_pform directly. Move the expander type into Action_expander.Expander and nest Substitute after it, removing the Fdecl and its initialization.
Rudi Grinberg (@rgrinberg)refactor(pkg): remove the unused source traversal accumulator
Remove the accumulator argument from the recursive traversal in source_files: both initial and recursive calls always pass an empty set. Use each directory's file set directly as the initial reduction value and combine recursive results as before.
Rudi Grinberg (@rgrinberg)