From 3f0e8fcb2cc02957f128fd2fc69b364718258463 Mon Sep 17 00:00:00 2001 From: "Kyle M. Tarplee" Date: Wed, 20 Sep 2023 07:24:57 -0400 Subject: [PATCH] fix: added HandleWarning to clone() Signed-off-by: Kyle M. Tarplee --- registry/remote/repository.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registry/remote/repository.go b/registry/remote/repository.go index 00335047..fc4f6bf6 100644 --- a/registry/remote/repository.go +++ b/registry/remote/repository.go @@ -197,11 +197,12 @@ func (r *Repository) clone() *Repository { Client: r.Client, Reference: r.Reference, PlainHTTP: r.PlainHTTP, - SkipReferrersGC: r.SkipReferrersGC, ManifestMediaTypes: slices.Clone(r.ManifestMediaTypes), TagListPageSize: r.TagListPageSize, ReferrerListPageSize: r.ReferrerListPageSize, MaxMetadataBytes: r.MaxMetadataBytes, + SkipReferrersGC: r.SkipReferrersGC, + HandleWarning: r.HandleWarning, } }