From c1a00520dcb4882126c389b3acd4115a4ffb38e4 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Tue, 21 Dec 2021 02:08:51 +0100 Subject: [PATCH] fix: stop if no tags in place --- cli/recipe/release.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/recipe/release.go b/cli/recipe/release.go index d5e6e805..b8631749 100644 --- a/cli/recipe/release.go +++ b/cli/recipe/release.go @@ -242,6 +242,10 @@ You may invoke this command in "wizard" mode and be prompted for input: logrus.Fatal(err) } + if lastGitTag.String() == "" || lastGitTag.String() == ".." { + logrus.Fatal("no git tags found, please specify ") + } + newTag := lastGitTag var newtagString string if bumpType > 0 {