Repository activity
40458 results across all weeks
refactor(pkg): return source discovery errors explicitly
Return source-file discovery errors as results and propagate them through source_rules alongside source dependencies.
Rudi Grinberg (@rgrinberg)refactor(pkg): reuse value-list environment conversion
Reuse Value_list_env.to_env in the context and selected-package environment helpers instead of duplicating value encoding and environment construction.
Rudi Grinberg (@rgrinberg)refactor(pkg): simplify loc handling
The same location is returned from both branches, so it can be hoisted
Rudi Grinberg (@rgrinberg)refactor(pkg): specialize package path construction
Supply Path.Build.relative inside Paths.make instead of passing it at every call site. Package roots are always build paths, and all callers already supply this same function.
Rudi Grinberg (@rgrinberg)refactor(pkg): use the package name from expander paths
Remove the duplicate name field from Action_expander.Expander.t. The package paths already carry the same name; read Paths.name locally when constructing Run_with_path metadata.
Rudi Grinberg (@rgrinberg)refactor(ppx): share driver flag setup with linting
Share PPX driver resolution, flag memoization, and %{corrected-suffix} expansion between linting and non-staged preprocessing. Each path keeps its own flag field, defaults, and correction suffix. Staged preprocessing is unchanged.
Rudi Grinberg (@rgrinberg)refactor(rpc): share method lookup error construction
Build the method-name payload in one place for both RPC lookup failures. An invalid method and a method with no common version still report distinct errors.
Rudi Grinberg (@rgrinberg)refactor(rpc): update only converted diagnostic fields
Use record updates when converting V1 diagnostics, replacing only the message and related diagnostics. The remaining fields and wire encoding are unchanged.
Rudi Grinberg (@rgrinberg)refactor(rules): share duplicate library diagnostics
Render both declaration locations through one helper for duplicate-library errors. Each caller keeps its existing message and whether the main declaration is shown as the primary location.
Rudi Grinberg (@rgrinberg)refactor(rules): share environment merging for included dependencies
Use one path-aware environment merge for named and unnamed included dependencies. Keep the existing merge order in both cases.
Rudi Grinberg (@rgrinberg)refactor(rules): share executable dependency resolution
Use one resolver for executable compilation, workspace descriptions, optional executable checks, and utop. PPX instrumentation still resolves in the stanza scope, even when utop uses a different library database. Install rules continue to read only direct dependencies, leaving forbidden-library checks to linking.
Rudi Grinberg (@rgrinberg)refactor(rules): share expanded action finalization
Apply the working directory, sandbox, and environment in one place for both action expansion paths. Select generated diff formatting when choosing the expansion function, without changing target handling.
Rudi Grinberg (@rgrinberg)refactor(rules): share library compilation context construction
Use the same helper to resolve the library, find its source modules, and construct its compilation context whether generating library rules or only requesting the context. This keeps the two paths from drifting without changing rule generation.
Rudi Grinberg (@rgrinberg)refactor(rules): share parser-generator stanza dispatch
Use the same enabled_if check to dispatch ocamllex and ocamlyacc rules. Disabled stanzas still generate no rules, and Menhir dispatch is unchanged.
Rudi Grinberg (@rgrinberg)refactor(rules): use the compilation context directly for unused libraries
Generate unused-library rules directly from the compilation context instead of forwarding its fields through a one-use helper. Read the remaining fields only when there are compiled units to inspect.
Rudi Grinberg (@rgrinberg)refactor(stdune): share local path setup across roots
Use one functor to specialize prefixes, comparators, and collections for local, source, and build paths. Each root keeps its own witness type and conversions.
Rudi Grinberg (@rgrinberg)remove the toolchains mechanism
We have been keeping the toolchains mechanism around since the relocatable compiler work in order to support oxcaml with dune pkg. Hopefully oxcaml will become relocatable soon, see https://github.com/oxcaml/oxcaml/stack/6949.
Ali Caglayan (@Alizter)rocq.theory: rebuild an importer only when an imported module's interface changes, not when any byte of its .vo changes
Problem
zitronotest(boot): preserve installed paths for relocatable OCaml
The bootstrap GC cram test symlinks the OCaml toplevel into its temporary tools directory. A toplevel built with --with-relative-libdir looks for the standard library relative to that path and fails with Unbound module Stdlib before the GC checks run, as seen in the OCaml 5.5 CI job for #17149.
Rudi Grinberg (@rgrinberg)test(engine): characterize silent rule invalidation by output policy
Changing successful-output policy currently invalidates an otherwise unchanged, silent rule. Add a plain-rule cram covering stdout/stderr swallowing and must-be-empty, with filtered target-rule cache-miss reasons and null-build controls.
Rudi Grinberg (@rgrinberg)