Skip to content

Make an explicit local Registry root authoritative over cache #21

Description

@rudijetson

Problem

When USE_LOCAL_REGISTRY=true and RUDI_REGISTRY_ROOT selects an explicit checkout, fetchIndex() can still return a newer or equal-mtime cache created from a different local root. CI exposed this as a repeated resolver test failure: one test received the previous fixture's package contract.

Evidence

Scope

  • make a valid explicitly configured local Registry index authoritative
  • retain existing mtime/cache behavior for auto-discovered local roots
  • add a deterministic regression with an intentionally newer stale cache
  • keep this fix independent of the feature PR stack

Acceptance

  • regression fails before the fix for the expected stale-cache reason
  • explicit local root wins even when its index mtime is older than cache
  • normal cached/remote Registry behavior remains covered
  • full tests, build, debt scan, package dry run, and diff checks pass

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions