Repository navigation
Keep nested pins whose owner/repo case differs from the lockfile - #260
Merged
Merged
Conversation
A default run seeds the resolver cache from actions.lock, which stores owner/repo lowercased. When a bumped composite names an unchanged child in mixed case, the cache hit came back under the lowercase name, so the child's key missed its parent edge and the lockfile pruned it as an orphan. Answer cache hits under the spelling the composite wrote. Fixes #257
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change preserving owner/repository casing on resolver cache hits.
No open issues 🎉
What changed in this PR
Fixes #257 by preserving the composite manifest’s owner/repository casing on resolver cache hits, preventing unchanged nested dependencies from losing their parent edges and being pruned.
Changes:
- Adjusts cached dependency copies to match the requested owner/repository spelling when only casing differs.
- Adds resolver and CLI regression tests covering child retention, parent edges, and subsequent
--verifysuccess.
| File | Description |
|---|---|
internal/resolve/discovery.go |
Preserves requested owner/repository casing on cache hits. |
internal/resolve/discovery_test.go |
Checks that lockfile-seeded children retain their spelling and parent edge. |
cmd/gh-actions-lock/run_test.go |
Tests a composite bump retaining its mixed-case child and passing verification. |
Review effort: Balanced (auto)
5 tasks done
1 task
Merged
1 task
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.
DamianReeves/write-file-action, the cached answer came back under the lowercase name.--verifycaught it.