Skip to content

Commit b66e8a9

Browse files
committed
Makefile: use another git tag command
1 parent 8e15601 commit b66e8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BUILD_DATE = $(shell date +%FT%T%z)
44
GO_VERSION = $(shell go version | awk '{print $$3}')
55
GIT_COMMIT = $(shell git rev-parse --short HEAD)
66
PACKAGE = $(shell awk '$$1 == "Name:" { print $$2 }' $(SPECFILE) )
7-
VERSION = $(shell git describe --abbrev=0 | sed 's/^v//g' )
7+
VERSION = $(shell git tag --sort=-v:refname | head -n 1 | sed 's/^v//g' )
88
RELEASE = $(shell awk '$$1 == "Release:" { print $$2 }' $(SPECFILE) )
99
OS_ARCH = $(shell echo "$$(uname -s)/$$(uname -m)")
1010
rpmbuild = ${shell pwd}/rpmbuild

0 commit comments

Comments
 (0)