Skip to content

Commit

Permalink
fetch all tags
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Aug 5, 2020
1 parent 234c465 commit 8869859
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/version/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ func main() {
}

func getLastTag() string {
_, err := exec.Command("git", "fetch", "--tags").Output()
if err != nil {
panic(fmt.Errorf("could not fetch tags: %w", err))
}

gitOutput, err := exec.Command("git", "describe", "--tags", "--match", `v*`, "--abbrev=0").Output()
if err != nil {
panic(fmt.Errorf("could not get last tag: %w", err))
Expand Down

0 comments on commit 8869859

Please sign in to comment.