feat: multi-repo checks via origin-to-local-checkout mapping (--repo flag + [[repos]] config)#34
Open
laulauland wants to merge 3 commits into
Open
feat: multi-repo checks via origin-to-local-checkout mapping (--repo flag + [[repos]] config)#34laulauland wants to merge 3 commits into
laulauland wants to merge 3 commits into
Conversation
9e4ffa8 to
934387e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Origin-qualified anchors (
origin = "github:owner/repo") are currently always reportedSKIPwhen they don't match the current repo. This stack lets a consumer repo map an origin to a local sibling checkout, so those anchors get checked for real: fingerprints recomputed against the neighbor's files, blame from the neighbor's git history.or persistently:
Stack (one commit per concern)
src/toml.zig(behavior-preserving: existing lockfile tests unchanged) and addssrc/Config.zigwith strict parsing, line-numbered diagnostics, missing-file-is-default. No user-visible change.src/repo_map.zig(parseSpec/validate/immutableRepoMap), lint resolution at the origin-mismatch branch, blame against the mapped root, newmapped_repo_missingskip reason (a teammate without the sibling checkout degrades to SKIP, never an error). Integration tests run against two real temp git repos.validateas flag specs,buildMergedwith CLI-wins precedence; config paths resolve against the lockfile root (checkout-location independent), flag paths against cwd. DECISIONS.md §15 documents the precedence choice.Each commit leaves
zig build testgreen; the tip relinksdrift.lockfor the changed bound files (SKILL.md's origin section updated to document the mapping; CLI.md/DESIGN.md were updated within the stack).Notes
BEHIND) is deliberately out of scope.