Skip to content

Commit

Permalink
fix: support double digit version numbers (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta authored Jan 8, 2025
1 parent 4900541 commit 6bb0ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MODULE = $(shell env GO111MODULE=on $(GO) list -m)
DATE ?= $(shell date +%FT%T%z)
VERSION ?= $(shell git describe --tags --always --dirty --match=v* 2> /dev/null || \
cat $(CURDIR)/.version 2> /dev/null || echo v0)
LATEST_RELEASE ?= $(shell git describe --tags --match=v* --abbrev=0 | grep -o "[0-9]\.[0-9]\.[0-9]")
LATEST_RELEASE ?= $(shell git describe --tags --match=v* --abbrev=0 | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+")
PKGS = $(or $(PKG),$(shell env GO111MODULE=on $(GO) list ./...))
TESTPKGS = $(shell env GO111MODULE=on $(GO) list -f \
'{{ if or .TestGoFiles .XTestGoFiles }}{{ .ImportPath }}{{ end }}' \
Expand Down

0 comments on commit 6bb0ba0

Please sign in to comment.