From 56adf2773bd6757ba82b32fe88ecac3f1631fe30 Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Tue, 14 Mar 2023 09:28:17 +0800 Subject: [PATCH] fix the version bug (#310) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a4a83756..a70cc4af 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ MKFILE_DIR := $(dir $(MKFILE_PATH)) RELEASE_DIR := ${MKFILE_DIR}/build/bin # Version -RELEASE_VER := $(shell git describe --tag --abbrev=0) +RELEASE_VER := $(shell git tag --list --sort=-creatordate "v*" | head -n 1 ) # Go MOD GO_MOD := $(shell go list -m)