Skip to content

Commit

Permalink
Update build to catch all tags (#168)
Browse files Browse the repository at this point in the history
'git describe' only returns the latest annotated tag.
When building binaries we want to catch all tags, not just annotated ones.
  • Loading branch information
YrrepNoj authored Nov 9, 2021
1 parent b7b01b2 commit b46d28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# test: deps
# gotestsum

CLI_VERSION := $(if $(shell git describe), $(shell git describe), "UnknownVersion")
CLI_VERSION := $(if $(shell git describe --tags), $(shell git describe --tags), "UnknownVersion")

build:
mkdir -p ../build
Expand Down

0 comments on commit b46d28c

Please sign in to comment.