Repository activity
40458 results across all weeks
fix(cache): distinguish missing metadata from read errors
Fix the metadata read-error misclassification demonstrated in #16408.
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)fix(cram): translate script path passed to sh on windows
On windows, I encountered errors due to mangled paths when running cram tests. The relevant path is now properly translated.
Kento Okura (@kentookura)fix(engine): always remove write permissions from generated files
Remove the pre-2.4 language-version opt-out for generated-file permissions. Older dune-project declarations remain accepted, but generated files are always made read-only, with executable bits preserved. This makes builds consistent with the shared cache in both copy and hardlink modes.
Rudi Grinberg (@rgrinberg)fix(engine): copy directory targets when creating install symlinks on windows
Io.portable_symlink only performs a shallow copy on windows, so we detect this case and copy the directory target
Kento Okura (@kentookura)fix(findlib): memoize findlib db properly
The table was being recreated for each call of create_with_paths making the memoization useless. We move the Per_context wrapper to create, where it can actually be keyed against the context name.
Ali Caglayan (@Alizter)fix(include-subdirs): reject conflicting generated modules
Reject generated sources that conflict with other sources for the same module. Follow-up to #16410, extracted from #13691.
Antonio Nuno Monteiro (@anmonteiro)fix(menhir): avoid self-shadowing parser group interfaces
Skip alias self-shadowing for Menhir-generated module group interfaces, fixing the inferred-path failures from #8989. Regression coverage was merged in #16426.
Antonio Nuno Monteiro (@anmonteiro)fix(menhir): preserve dependencies used for type inference
Preserve dependencies used by Menhir type inference so generated parsers and their dependents rebuild correctly, without changing hidden-module lookup.
Antonio Nuno Monteiro (@anmonteiro)fix(package-deps): follow library-induced package closure
Include whole packages reached through library dependencies and track installed file changes. For packages in the lock directory, we have no easy way of getting the libraries directly, so instead we use the direct package closure which is already computed.
Ali Caglayan (@Alizter)include_subdirs qualified should allow mapping folders to module names
Desired Behavior
Antonio Nuno Monteiro (@anmonteiro)menhir: missing dep for inferred mli
@trefis reported a race which can sometimes cause menhir generated parsers to fail to build with dune, because some of their dependencies are not tracked: Menhir compilation involves a call to ocamlc -i that may produce references to hidden module names (__), which Dune doesn't recognize as non-generated code shouldn't refer to those explicitly. In practice …
art-wodoc: can't link between packages
I've made a simple test repository showing what I'm trying to do here: https://github.com/talex5/odoc-test
Thomas Leonard (@talex5)refactor(action-plugin): make the Lwt runner non-exiting
Make Dune_rpc_lwt.V1.Action_plugin.run return unit Lwt.t rather than driving the event loop or exiting the process. This lets plugin execution compose with other Lwt computations and leaves error reporting and process lifetime to the caller.
Rudi Grinberg (@rgrinberg)refactor(pkg): remove pkg digests
Description
Ali Caglayan (@Alizter)refactor(rpc): derive address and registry diagnostics from Repr
Follow up on #16398 by exposing Where.repr and Pid.repr and using structured representations for RPC address and registry-entry diagnostics. Replace the hand-written registry comparison with Repr.Poly.
Rudi Grinberg (@rgrinberg)refactor(rpc): use Pid.t in registry entries
Use Pid.t for RPC registry entries and their construction, with shared comparison and conversion helpers. Keep the pid accessor and serialized representation integer-based.
Rudi Grinberg (@rgrinberg)refactor(stdune): return results from file reads and writes
Make Io.read_file and Io.write_file return results, retaining _exn variants for callers that propagate exceptions. Replace Io.write_fd_exn with result-returning Io.write_fd, without a raising variant.
Rudi Grinberg (@rgrinberg)test(action-plugin): cover accepted exit codes
Add a plugin mode that exits with a requested status after DAP initialization. The test first checks the default zero/nonzero exit policy, then exercises explicitly accepted and rejected statuses in separate rules.
Rudi Grinberg (@rgrinberg)test(action-plugin): cover detached requests
Cover unsandboxed dependency requests that outlive the action-plugin process. The producer waits for the plugin to exit; subsequent changes to its input must rerun the plugin, verifying that late dependency facts are retained in the rule cache.
Rudi Grinberg (@rgrinberg)