feat: add error handling to fetching git tags if none found

This commit is contained in:
RaviAnand Mohabir 2024-06-27 16:20:14 +02:00
parent 643cf127a6
commit 7e02953285

View File

@ -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
}