From 7c4831d2d148e5966ed922432a1aaf32b250a99c Mon Sep 17 00:00:00 2001 From: Takayuki Ushida Date: Fri, 18 Jan 2019 13:13:50 +0900 Subject: [PATCH] add build time (#763) --- GNUmakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 6a03de3d..33188039 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -18,8 +18,9 @@ SRCS = $(shell git ls-files '*.go') PKGS = $(shell go list ./...) VERSION := $(shell git describe --tags --abbrev=0) REVISION := $(shell git rev-parse --short HEAD) +BUILDTIME := $(shell date "+%Y%m%d_%H%M%S") LDFLAGS := -X 'github.com/future-architect/vuls/config.Version=$(VERSION)' \ - -X 'github.com/future-architect/vuls/config.Revision=$(REVISION)' + -X 'github.com/future-architect/vuls/config.Revision=$(BUILDTIME)_$(REVISION)' all: dep build