From fba4f76f17c741ebcfaaa7c1e65898e92e723292 Mon Sep 17 00:00:00 2001 From: Ivan Ilves Date: Sat, 7 Oct 2017 19:35:41 +0200 Subject: [PATCH] Fix wrong tag name extraction --- tag/local/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag/local/local.go b/tag/local/local.go index 7a5eb7e..2caebb3 100644 --- a/tag/local/local.go +++ b/tag/local/local.go @@ -101,7 +101,7 @@ func extractTagNames(repoTags []string, repo string) []string { for _, tag := range repoTags { if strings.HasPrefix(tag, repo+":") { fields := strings.Split(tag, ":") - tagNames = append(tagNames, fields[1]) + tagNames = append(tagNames, fields[len(fields)-1]) } }