modify build time (#766)

This commit is contained in:
Takayuki Ushida
2019-01-24 15:26:12 +09:00
committed by Kota Kanbe
parent 9b8a323d85
commit 9c0bc3b13b

View File

@@ -20,7 +20,7 @@ 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=$(BUILDTIME)_$(REVISION)'
-X 'github.com/future-architect/vuls/config.Revision=build-$(BUILDTIME)_$(REVISION)'
all: dep build