From 89a23f1923aa122734e92ddb588f20694959afbf Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Fri, 16 Oct 2020 06:06:42 +0000 Subject: Apply 1 suggestion(s) to 1 file(s) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 664760f..1c3fd38 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: validate verify verify_ruby verify_golang test test_ruby test_golang coverage coverage_golang setup _install build compile check clean GO_SOURCES := $(shell find . -name '*.go') -VERSION_STRING := $(shell git describe --match v* 2>/dev/null || cat VERSION 2>/dev/null || echo unknown) +VERSION_STRING := $(shell git describe --match v* 2>/dev/null || awk '$0="v"$0' VERSION 2>/dev/null || echo unknown) BUILD_TIME := $(shell date -u +%Y%m%d.%H%M%S) GOBUILD_FLAGS := -ldflags "-X main.Version=$(VERSION_STRING) -X main.BuildTime=$(BUILD_TIME)" -- cgit v1.2.1