fix: panic if empty tags in auto mode

main
sudo pacman -Syu 2023-07-23 16:22:59 +07:00
parent 1521db7bb8
commit 78ce559398
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func (a *action) RunGenerate(c *cli.Context) error {
if useLatestTag {
tags, err := repo.SemVerTags()
if err == nil {
if err == nil && len(tags) > 0 {
a.flags.to = tags[len(tags)-1].Version.Original()
}
}