diff --git a/plugin/util.go b/plugin/util.go index 8e452e7..58aee99 100644 --- a/plugin/util.go +++ b/plugin/util.go @@ -62,7 +62,9 @@ func getLatestGitTag(options ...GetLatestGitTagOption) (tag string, err error) { tag = strings.Join(parts[2:], "/") } - fmt.Println(tag) + if tag == "" { + return tag, fmt.Errorf("couldn't find any git tags") + } return }