feat(registry): expose predecessor finder by BLCCoreStudio · Pull Request #1354 · oras-project/oras-go · GitHub
Skip to content

feat(registry): expose predecessor finder - #1354

Merged
TerryHowe merged 1 commit into
oras-project:mainfrom
BLCCoreStudio:fix/repository-predecessor-finder
Aug 31, 2026
Merged

feat(registry): expose predecessor finder#1354
TerryHowe merged 1 commit into
oras-project:mainfrom
BLCCoreStudio:fix/repository-predecessor-finder

Conversation

@BLCCoreStudio

Copy link
Copy Markdown
Contributor

Summary

  • embed content.PredecessorFinder in registry.Repository
  • make the policy-enforcing repository explicitly delegate Predecessors, mirroring the existing referrers carve-out
  • add coverage that a repository returned by Registry.Repository() can be passed directly to oras.ExtendedCopyGraph without a type assertion
  • document the registry.Repository interface change in the migration guide

Testing

  • go test ./...
  • make test
  • git diff --check

Fixes #1353

Signed-off-by: BLCCoreStudio <207100624+BLCCoreStudio@users.noreply.github.com>
@BLCCoreStudio
BLCCoreStudio force-pushed the fix/repository-predecessor-finder branch from bde9506 to e5eee77 Compare August 31, 2026 01:16

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

@TerryHowe
TerryHowe merged commit 97922cb into oras-project:main Aug 31, 2026
10 checks passed
@TerryHowe

Copy link
Copy Markdown
Member

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add content.PredecessorFinder to the registry.Repository interface

2 participants