Skip to content

Commit 6bb0ba0

Browse files
authored
fix: support double digit version numbers (#354)
1 parent 4900541 commit 6bb0ba0

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
@@ -8,7 +8,7 @@ MODULE = $(shell env GO111MODULE=on $(GO) list -m)
88
DATE ?= $(shell date +%FT%T%z)
99
VERSION ?= $(shell git describe --tags --always --dirty --match=v* 2> /dev/null || \
1010
cat $(CURDIR)/.version 2> /dev/null || echo v0)
11-
LATEST_RELEASE ?= $(shell git describe --tags --match=v* --abbrev=0 | grep -o "[0-9]\.[0-9]\.[0-9]")
11+
LATEST_RELEASE ?= $(shell git describe --tags --match=v* --abbrev=0 | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+")
1212
PKGS = $(or $(PKG),$(shell env GO111MODULE=on $(GO) list ./...))
1313
TESTPKGS = $(shell env GO111MODULE=on $(GO) list -f \
1414
'{{ if or .TestGoFiles .XTestGoFiles }}{{ .ImportPath }}{{ end }}' \

0 commit comments

Comments
 (0)