From 239852c56e43c2cf2bff8b1e234d7b8d79bff088 Mon Sep 17 00:00:00 2001 From: alimy Date: Sun, 12 Jun 2022 10:27:40 +0800 Subject: [PATCH] remove no-need build version info --- Makefile | 3 +-- main.go | 4 +++- version | 0 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 version diff --git a/Makefile b/Makefile index d2090ed6..b505032b 100644 --- a/Makefile +++ b/Makefile @@ -8,12 +8,11 @@ RELEASE_DARWIN_AMD64 = $(RELEASE_ROOT)/darwin-amd64/$(TARGET) RELEASE_DARWIN_ARM64 = $(RELEASE_ROOT)/darwin-arm64/$(TARGET) RELEASE_WINDOWS_AMD64 = $(RELEASE_ROOT)/windows-amd64/$(TARGET) -BUILD_VERSION := $(shell cat version) BUILD_DATE := $(shell date +'%Y-%m-%d %H:%M:%S') SHA_SHORT := $(shell git rev-parse --short HEAD) TAGS = "" -LDFLAGS = -X "main.version=${BUILD_VERSION}" -X "main.buildDate=${BUILD_DATE}" -X "main.commitID=${SHA_SHORT}" -w -s +LDFLAGS = -X "main.buildDate=${BUILD_DATE}" -X "main.commitID=${SHA_SHORT}" -w -s all: fmt build diff --git a/main.go b/main.go index 2477b350..dbf61725 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,9 @@ import ( ) var ( - version, buildDate, commitID string + version = "v0.2.0" + buildDate string + commitID string noDefaultFeatures bool features suites diff --git a/version b/version deleted file mode 100644 index e69de29b..00000000