From 5dcb0d9b69cfb4e4e31248fb9ebba169235911d6 Mon Sep 17 00:00:00 2001 From: BiPhan4 Date: Wed, 11 Dec 2024 15:23:45 -0500 Subject: [PATCH] default to 0.0.0 if no tags found --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dd51640..53ba377 100644 --- a/Makefile +++ b/Makefile @@ -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') ###############################################################################