Skip to content

Commit 20598a7

Browse files
authored
fix: get only the most recent tag in Makefile (#1269)
1 parent 774488d commit 20598a7

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
@@ -5,7 +5,7 @@ export GO111MODULE=on
55
all: image
66

77
TAG=$(shell git describe --tags --abbrev=10 --long)
8-
TAGGED=$(shell git tag --contains | head)
8+
TAGGED=$(shell git tag --sort=-creatordate --contains | head --lines=1)
99
ifneq (,$(TAGGED))
1010
# We're tagged. Use the tag explicitly.
1111
VERSION := $(TAGGED)

0 commit comments

Comments
 (0)