Skip to content

Commit

Permalink
default to 0.0.0 if no tags found
Browse files Browse the repository at this point in the history
  • Loading branch information
BiPhan4 committed Dec 11, 2024
1 parent df27581 commit 5dcb0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export GO111MODULE = on

VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//')
VERSION := $(shell (git describe --tags 2>/dev/null || echo "0.0.0") | sed 's/^v//')
COMMIT := $(shell git log -1 --format='%H')

###############################################################################
Expand Down

0 comments on commit 5dcb0d9

Please sign in to comment.