Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add CopyOption with includeReferrers option and ensure to copy index on index#610

Merged
jonesbusy merged 1 commit into
oras-project:mainoras-project/oras-java:mainfrom
jonesbusy:feature/copy-optionsjonesbusy/oras-java:feature/copy-optionsCopy head branch name to clipboard
Mar 4, 2026
Merged

Add CopyOption with includeReferrers option and ensure to copy index on index#610
jonesbusy merged 1 commit into
oras-project:mainoras-project/oras-java:mainfrom
jonesbusy:feature/copy-optionsjonesbusy/oras-java:feature/copy-optionsCopy head branch name to clipboard

Conversation

@jonesbusy
Copy link
Copy Markdown
Collaborator

Description

Add CopyOption and add option for deep copy (index of index)

Testing done

Automated tests

Miss one test on Registry that create and Index with nested Index

Submitter checklist

  • I have read and understood the CONTRIBUTING guide
  • I have run mvn license:update-file-header, mvn spotless:apply, pre-commit run -a, mvn clean install before opening the PR

@jonesbusy jonesbusy added the enhancement New feature or request label Feb 28, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 28, 2026

Codecov Report

❌ Patch coverage is 83.05085% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.71%. Comparing base (a64d114) to head (9643d46).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/main/java/land/oras/OCI.java 20.00% 3 Missing and 1 partial ⚠️
src/main/java/land/oras/Registry.java 60.00% 0 Missing and 4 partials ⚠️
src/main/java/land/oras/CopyUtils.java 95.23% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #610      +/-   ##
============================================
+ Coverage     87.25%   87.71%   +0.45%     
- Complexity      846      855       +9     
============================================
  Files            42       42              
  Lines          2551     2588      +37     
  Branches        317      325       +8     
============================================
+ Hits           2226     2270      +44     
+ Misses          202      188      -14     
- Partials        123      130       +7     

☔ View full report in Codecov by Sentry.
📢 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.

@jonesbusy jonesbusy force-pushed the feature/copy-options branch 6 times, most recently from ddf7827 to 6ac2b9c Compare March 4, 2026 07:43
@jonesbusy jonesbusy force-pushed the feature/copy-options branch 3 times, most recently from ddcd3f0 to c82268e Compare March 4, 2026 09:54
Signed-off-by: Valentin Delaye <jonesbusy@users.noreply.github.com>
@jonesbusy jonesbusy force-pushed the feature/copy-options branch from c82268e to 9643d46 Compare March 4, 2026 10:49
@jonesbusy jonesbusy changed the title Add CopyOption and add option for deep copy (index of index) Add CopyOption and ensure to copy index on index Mar 4, 2026
@jonesbusy jonesbusy changed the title Add CopyOption and ensure to copy index on index Add CopyOption with includeReferrers option and ensure to copy index on index Mar 4, 2026
@jonesbusy jonesbusy marked this pull request as ready for review March 4, 2026 11:04
@jonesbusy jonesbusy merged commit be30c05 into oras-project:main Mar 4, 2026
9 of 12 checks passed
@jonesbusy jonesbusy deleted the feature/copy-options branch March 4, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.