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]) } }