From 7d6b661d977a0863fa84db2c6a19b550f81efa24 Mon Sep 17 00:00:00 2001 From: 9seconds Date: Fri, 2 Nov 2018 19:10:21 +0300 Subject: [PATCH] More correct command for versioning --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8e45916..c001a39 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ GOLANGCI_LINT_VERSION := v1.11.2 VERSION_GO := $(shell go version) VERSION_DATE := $(shell date -Ru) -VERSION_TAG := $(shell git describe --long --always) +VERSION_TAG := $(shell git describe --tags --always) COMMON_BUILD_FLAGS := -ldflags="-s -w -X 'main.version=$(VERSION_TAG) ($(VERSION_GO)) [$(VERSION_DATE)]'" MOD_ON := env GO111MODULE=on