From 9ac52efb6515c01a42160711ebe18704325521bf Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Wed, 9 Aug 2023 06:59:56 +0000 Subject: [PATCH] skip index referrers gc 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 }