oras-project / oras-go

ORAS Go library
https://oras.land
Apache License 2.0
179 stars 96 forks source link

feat: add MountFrom and OnMounted to CopyGraphOptions #665

Closed ktarplee closed 9 months ago

ktarplee commented 9 months ago

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

codecov[bot] commented 9 months ago

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 :warning:
Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

shizhMSFT commented 9 months ago

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

ktarplee commented 9 months ago

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