From f10aadb2675b26d351365c6c208c930b6d4c619c Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Mon, 23 Mar 2020 14:24:48 -0700 Subject: cmd: Simplify "fscrypt --version" output (#207) There's no need to include the build time, author, and copyright info in the output of "fscrypt --version". This information is: - Overly complex (the current string is hard to parse) - Inaccurate (there are other authors than just me) - Unnecessary (the Apache 2 license is for Source Code) - Makes reproducible builds impossible The default version string is just fine. Signed-off-by: Joe Richey --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 01aba8f..014c610 100644 --- a/Makefile +++ b/Makefile @@ -68,10 +68,8 @@ GO_LINK_FLAGS := -s -w # Flag to embed the version (pulled from tags) into the binary. TAG_VERSION := $(shell git describe --tags) VERSION_FLAG := -X "main.version=$(if $(TAG_VERSION),$(TAG_VERSION),$(VERSION))" -# Flag to embed the date and time of the build into the binary. -DATE_FLAG := -X "main.buildTime=$(shell date)" -override GO_LINK_FLAGS += $(VERSION_FLAG) $(DATE_FLAG) -extldflags "$(LDFLAGS)" +override GO_LINK_FLAGS += $(VERSION_FLAG) -extldflags "$(LDFLAGS)" override GO_FLAGS += --ldflags '$(GO_LINK_FLAGS)' # Always use Go modules export GO111MODULE = on -- cgit v1.2.3