From 08a0e8be87c52a4b833b4c89affc7f201d3aef68 Mon Sep 17 00:00:00 2001 From: Gianluca Recchia Date: Tue, 21 Sep 2021 14:45:49 +0200 Subject: [PATCH] Include lightweight tags in `git describe` --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0c7d6cc..35feb05 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ GOFMT ?= gofmt PACKAGE := $(shell $(GOCMD) list) NAME := $(notdir $(PACKAGE)) FULLCOMMIT := $(shell git rev-parse HEAD) -TAG := $(shell git describe --dirty) +TAG := $(shell git describe --tags --dirty) VERSION := $(TAG:v%=%) BUILD_VERSION := $(subst -,.,$(VERSION))