From fda8425c7bf8712eec8c948a11c9304ef128d17e Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Wed, 9 Aug 2023 19:00:46 +0800 Subject: [PATCH] feat: disable referrers index GC by default (#1059) Signed-off-by: Billy Zha --- cmd/oras/internal/option/remote.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/oras/internal/option/remote.go b/cmd/oras/internal/option/remote.go index efd4e054a..0f9e3fe42 100644 --- a/cmd/oras/internal/option/remote.go +++ b/cmd/oras/internal/option/remote.go @@ -269,6 +269,7 @@ func (opts *Remote) NewRepository(reference string, common Common) (repo *remote } hostname := repo.Reference.Registry repo.PlainHTTP = opts.isPlainHttp(hostname) + repo.SkipReferrersGC = true if repo.Client, err = opts.authClient(hostname, common.Debug); err != nil { return nil, err }