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: add MountFrom and OnMounted to CopyGraphOptions #665

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

ktarplee
Copy link
Contributor

@ktarplee ktarplee commented Jan 3, 2024

Adds MountFrom and OnMounted to CopyGraphOptions.
Allows for trying to mount from multiple repositories.

Closes #580

I think this is a better approach than my other PR #632

@ktarplee ktarplee changed the title feat: added blob mounting support for oras Copy functions feat: add MountFrom and OnMounted to CopyGraphOptions Jan 3, 2024
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (d1becd5) 75.46% compared to head (c971de8) 75.57%.

Files Patch % Lines
copy.go 83.01% 6 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #665      +/-   ##
==========================================
+ Coverage   75.46%   75.57%   +0.11%     
==========================================
  Files          59       59              
  Lines        5640     5692      +52     
==========================================
+ Hits         4256     4302      +46     
- Misses       1019     1023       +4     
- Partials      365      367       +2     

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

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 with suggestions. I think this design is indeed a better approach than #632.

copy.go Outdated Show resolved Hide resolved
copy.go Outdated Show resolved Hide resolved
copy.go Outdated Show resolved Hide resolved
copy.go Outdated Show resolved Hide resolved
copy.go Outdated Show resolved Hide resolved
@shizhMSFT
Copy link
Contributor

@ktarplee Meanwhile, could you increase the code coverage so that the check can pass?

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

copy.go Outdated Show resolved Hide resolved
copy.go Outdated Show resolved Hide resolved
Adds MountFrom and OnMounted to CopyGraphOptions.
Allows for trying to mount from multiple repositories.

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

@Wwwsylvia @shizhMSFT I pushed my changes. Sorry about the delay.

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

@shizhMSFT shizhMSFT merged commit 89ad6cf into oras-project:main Jan 10, 2024
9 checks passed
@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
3 participants