Repository activity
40458 results across all weeks
doc: explain progress status line
Ali Caglayan (@Alizter)docs(changes): record read-only cache metadata
Add the release note for the shared-cache metadata permission change merged in #16393.
Rudi Grinberg (@rgrinberg)dune should ignore upper bounds on dune
Maintainers of opam repositories have their own reasons for including upper bounds on the dune package. See here for an example:
Ali Caglayan (@Alizter)feat(action-plugin): allow multiple dynamic invocations
Remove the single-invocation restriction so a rule can combine dynamic-run actions sequentially with progn or in parallel with concurrent. Invocations retain their working directories, and changes to either discovered input invalidate the enclosing rule.
Rudi Grinberg (@rgrinberg)feat(action-plugin): expose explicit dependency batches
Expose Action_plugin.build_deps in the core and Lwt APIs for batches of file, directory, and glob dependencies. Plugins can wait for these dependencies and then use ordinary I/O or pass them to another program, without reading their contents through the plugin API.
Rudi Grinberg (@rgrinberg)feat(action-plugin): honor accepted exit codes
Allow dynamic-run under with-accepted-exit-codes, including the supported nested action modifiers. Apply the enclosing exit-code policy instead of always requiring zero.
Rudi Grinberg (@rgrinberg)feat(action-plugin): restore dynamic actions from the shared cache
Allow unsandboxed dynamic actions to restore outputs from the shared cache in a fresh workspace, addressing the exclusion demonstrated by #16378.
Rudi Grinberg (@rgrinberg)feat(action-plugin): run dynamic-run over RPC
Replace the temporary-file handshake used by dynamic-run with Dune RPC requests. Keeping the plugin alive preserves process state while Dune builds newly discovered dependencies and avoids restarting the executable.
Rudi Grinberg (@rgrinberg)feat(artifacts): narrow binary lookups to declared dependencies
Description
Puneeth Chaganti (@punchagan)feat(pkg): allow lock-dir pkgs to dep on workspace pkgs (in&out)
A package in dune.lock can now name a workspace package in its (depends ...) field. The workspace package's install entries are materialised via the scoped install layout (#14373) and consed onto the lock-dir package's build env, so the build action sees the workspace package the same way it sees any other declared dep. Previously such an edge was rejected a…
Ali Caglayan (@Alizter)feat(pkg): decouple versioned lock directory paths
Depends on #16217. Until that PR merges, GitHub will include its commit in this cumulative diff.
Ali Caglayan (@Alizter)feat(sat): add clauses while solving
To allow the on-demand loading of opam packages by the opam_solver, we need the SAT solver to support the addition of constraints after the search has started (otherwise we have to build the whole SAT problem upfront, which requires reading every potentially relevant opam files ahead of time).
art-wfeat(stdune): add scoped temporary-file descriptors
Add Temp.with_temp_file_fd to retain the write-only creation descriptor with scoped close/unlink cleanup, leaving the existing path-only API unchanged. Add Io.write_fd to reuse complete writes while preserving I/O metrics.
Rudi Grinberg (@rgrinberg)feat(stdune): add tuple-free record codecs to Conv
Record codecs currently require converting records to and from tuples, with arity-specific combinators and repeated positional bookkeeping.
Rudi Grinberg (@rgrinberg)fix(action-plugin): connect helpers from different directories
A dynamic action can launch a subprocess in another working directory. That subprocess inherits DUNE_RPC, but an address relative to the parent’s launch directory no longer locates the server.
Rudi Grinberg (@rgrinberg)fix(action-plugin): drain requests before releasing the sandbox
Stop admitting dependency RPC requests when the plugin process exits, then wait for every accepted request before leaving the action’s execution context.
Rudi Grinberg (@rgrinberg)fix(action-plugin): honor stdout redirection
Forward the dynamic-run action’s stdout destination to Process.run, alongside stdin and stderr. This makes with-stdout-to write the plugin’s output to the requested target instead of Dune’s terminal.
Rudi Grinberg (@rgrinberg)fix(action-plugin): populate sandboxes with dynamic dependencies
Fix sandboxed dynamic-run by resolving dependency requests against the canonical build directory and populating the existing sandbox before recording facts or replying to the plugin.
Rudi Grinberg (@rgrinberg)fix(action-plugin): resolve client paths from the current directory
Resolve action-plugin dependency paths from the client’s current directory rather than its launch directory. Capture paths before waiting for Dune so a concurrent directory change cannot redirect file or directory reads.
Rudi Grinberg (@rgrinberg)fix(cache): make metadata read-only
Shared-cache metadata is immutable, but its files were left writable. Make newly written metadata read-only in both cache storage modes, without changing the atomic writer API.
Rudi Grinberg (@rgrinberg)