diff options
| author | Joseph Richey <joerichey@google.com> | 2020-03-23 14:24:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-23 14:24:48 -0700 |
| commit | f10aadb2675b26d351365c6c208c930b6d4c619c (patch) | |
| tree | 5a86d205de0e3ed6299942b21c1518a394f6b8d7 /Makefile | |
| parent | ab531eea551598170e4dd973fa5955f01b5c0318 (diff) | |
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 <joerichey@google.com>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |