oras-project / oras-go

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

feat: Public GC function of `oci.Store` #656

Closed wangxiaoxuan273 closed 8 months ago

wangxiaoxuan273 commented 9 months ago

Part of #472

codecov-commenter commented 9 months ago

Codecov Report

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

Comparison is base (c34d275) 75.57% compared to head (20af59f) 75.71%.

Files Patch % Lines
content/oci/oci.go 77.61% 10 Missing and 5 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #656 +/- ## ========================================== + Coverage 75.57% 75.71% +0.13% ========================================== Files 59 59 Lines 5692 5765 +73 ========================================== + Hits 4302 4365 +63 - Misses 1023 1028 +5 - Partials 367 372 +5 ```

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

wangxiaoxuan273 commented 8 months ago

Current behavior regarding referrers: when a referrer manifest is not in index.json, it will be cleaned by GC. Change may be made in the future when OCI layout has better support for finding referrers.