Thanks to visit codestin.com
Credit goes to github.com

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

@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

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.03%. Comparing base (cd926dc) to head (e5eee77).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1354      +/-   ##
==========================================
+ Coverage   85.00%   85.03%   +0.03%     
==========================================
  Files          94       94              
  Lines        7241     7243       +2     
==========================================
+ Hits         6155     6159       +4     
+ Misses        662      661       -1     
+ Partials      424      423       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Copy link
Copy Markdown
Member

Thanks!

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