Skip to content

Commit

Permalink
skip index referrers gc
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Aug 9, 2023
1 parent b3ac818 commit 9ac52ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/oras/internal/option/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9ac52ef

Please sign in to comment.