From c5183d0e341127cdc63997b1837e4f9d57575671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Fri, 22 May 2020 03:26:18 +0200 Subject: [PATCH] Use MatchString instead of Match with a manual conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should not change behavior AFAICT. Signed-off-by: Miloslav Trmač --- cmd/skopeo/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/skopeo/sync.go b/cmd/skopeo/sync.go index 71212879..67a37862 100644 --- a/cmd/skopeo/sync.go +++ b/cmd/skopeo/sync.go @@ -364,7 +364,7 @@ func imagesToCopyFromRegistry(registryName string, cfg registrySyncConfig, sourc repoLogger.Errorf("Internal error, reference %s does not have a tag, skipping", sReference.DockerReference()) continue } - if tagReg.Match([]byte(tagged.Tag())) { + if tagReg.MatchString(tagged.Tag()) { sourceReferences = append(sourceReferences, sReference) } }