Skip to content

Commit

Permalink
feat: disable referrers index GC by default (#1059)
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah authored Aug 9, 2023
1 parent 91db018 commit fda8425
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 fda8425

Please sign in to comment.