mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 12:28:01 +08:00
gc: add a policy to skip garbage collecting new blobs
We perform inline garbage collection of orphan blobs. However, the dist-spec poses a problem because blobs begin their life as orphan blobs and then a manifest is add which refers to these blobs. We use umoci's GC() to perform garbage collection and policy support has been added recently which can control whether a blob can be skipped for GC. In this patch, we use a time-based policy to skip blobs.
This commit is contained in:
@@ -1504,8 +1504,8 @@ go_repository(
|
||||
go_repository(
|
||||
name = "com_github_opencontainers_umoci",
|
||||
importpath = "github.com/opencontainers/umoci",
|
||||
sum = "h1:nUULYM+jSLLJCVN2gd4wldm8/yuVMahC36UXna3jEqI=",
|
||||
version = "v0.4.6",
|
||||
sum = "h1:6JA6emg6B0/8EhBw8i010nkXCnB1skxW+FQPFDJDzoA=",
|
||||
version = "v0.4.7-0.20200704224433-977db481b72c",
|
||||
)
|
||||
|
||||
go_repository(
|
||||
|
||||
Reference in New Issue
Block a user