Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: minimal change to support cross-repo blob mounting #631

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

ktarplee
Copy link
Contributor

Export ErrSkipDesc as ErrSkipDesc allows users of the library to implement CopyGraphOptions.PreCopy to call Mount() and then return ErrSkipDesc from PreCopy which bypasses the downstream copy operation.

Closes #580

@sajayantony
Copy link
Contributor

This is nice. Do we need a test for this?

@ktarplee
Copy link
Contributor Author

This is nice. Do we need a test for this?

I just added a test @sajayantony

@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2023

Codecov Report

Merging #631 (ac8b47f) into main (062ed0e) will increase coverage by 0.07%.
The diff coverage is 50.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main     #631      +/-   ##
==========================================
+ Coverage   75.12%   75.19%   +0.07%     
==========================================
  Files          59       59              
  Lines        5427     5427              
==========================================
+ Hits         4077     4081       +4     
+ Misses        995      992       -3     
+ Partials      355      354       -1     
Files Coverage Δ
copy.go 64.31% <50.00%> (+1.65%) ⬆️

Copy link
Member

@Wwwsylvia Wwwsylvia left a comment

Choose a reason for hiding this comment

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

LGTM. Can we have the PR title to start with feat: as per the conventional commits guidance?

copy.go Outdated Show resolved Hide resolved
@ktarplee ktarplee changed the title Minimal change to support cross-repo blob mounting feat: minimal change to support cross-repo blob mounting Nov 2, 2023
Also added a test to ensure that pushing the blob is skipped.

Signed-off-by: Kyle M. Tarplee <kmtarplee@ieee.org>
@ktarplee
Copy link
Contributor Author

ktarplee commented Nov 2, 2023

LGTM. Can we have the PR title to start with feat: as per the conventional commits guidance?

Sorry about that. I fixed it and the comment in the code. @Wwwsylvia

Copy link
Member

@Wwwsylvia Wwwsylvia left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

@Wwwsylvia Wwwsylvia merged commit e52a0b8 into oras-project:main Nov 3, 2023
7 checks passed
@Wwwsylvia
Copy link
Member

Thanks @ktarplee . Merged!

@Wwwsylvia Wwwsylvia mentioned this pull request Jan 26, 2024
4 tasks
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.

Support cross-repository mounting in Copy
5 participants