Repository activity
40458 results across all weeks
refactor(foreign): remove C/C++ dictionary lookups
Replace Foreign_language.Dict.get with direct C/C++ field access and remove its selector type. No behavior change.
Ali Caglayan (@Alizter)refactor(install): collect native install entries per package
Collect and memoize native install entries per package so package-local consumers do not expand unrelated packages. Share a context-level ownership index to avoid repeated workspace scans, and retain the full-map API for callers that need every package.
Ali Caglayan (@Alizter)refactor(install): compute install entries per package
Memoize a package's install entries per (context, package) instead of once for the whole workspace. Stanzas are filtered by their owning package before their install entries are computed, so asking for one package no longer computes the entries of every other package's stanzas.
Puneeth Chaganti (@punchagan)refactor(nix): share OxCaml compiler pins with CI
Move the OxCaml compiler and opam-repository pins into shared JSON data so Nix shells and CI can consume the same configuration. Keep the existing pins and release-tag consistency check, and expose separate release/latest compiler selections.
Ali Caglayan (@Alizter)refactor(odoc): move library naming to Odoc_scope
Description
Tim ats (@Tim-ats-d)refactor(pkg): declare directory targets before collecting rules
Declare package directory targets before collecting their rules. Prepare paths and classify sources once per package, returning target declarations together with deferred rules, then combine the per-package results without forcing local-source enumeration.
Rudi Grinberg (@rgrinberg)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): introduce a fetch source kind type
Replace the polymorphic fetch kind with Kind.t and use its enum for target
Rudi Grinberg (@rgrinberg)refactor(pkg): load fetch rules from a single directory
Generate shared fetch rules directly in _build/_fetch, encoding the identity type, source key, and output kind in each target name. This removes the reverse lookups and per-source directory dispatch.
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): move source_files next to source_rules
Move source_files out of Pkg and next to source_rules, without changing behavior. This isolates code motion from the upcoming package-rule loading refactor.
Rudi Grinberg (@rgrinberg)refactor(pkg): pass the source root to source_files
Pass the local source root already discovered by source_rules to source_files, rather than passing a resolved package and classifying its source again.
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 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 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): 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): return source validation errors explicitly
Make Lock_dir.source_kind return validation errors as a result rather than raising them. Existing callers unwrap the result to preserve behavior.
Rudi Grinberg (@rgrinberg)refactor(pkg): simplify loc handling
The same location is returned from both branches, so it can be hoisted
Rudi Grinberg (@rgrinberg)