From 0f2733418aadaab33fbae39917f7e603664ff098 Mon Sep 17 00:00:00 2001 From: AlteredCoder Date: Wed, 29 Jul 2020 17:36:59 +0200 Subject: [PATCH] fix version release --- Makefile | 2 +- cmd/crowdsec-cli/Makefile | 1 - cmd/crowdsec/Makefile | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a91f3393b..56238dcb9 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ BUILD_GOVERSION="$(shell go version | cut -d " " -f3 | sed -r 's/[go]+//g')" BUILD_CODENAME=$(shell cat RELEASE.json | jq -r .CodeName) BUILD_TIMESTAMP=$(shell date +%F"_"%T) BUILD_TAG="$(shell git rev-parse HEAD)" -export LD_OPTS=-ldflags "-X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ +export LD_OPTS=-ldflags "-s -w -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Version=$(BUILD_VERSION) \ -X github.com/crowdsecurity/crowdsec/pkg/cwversion.BuildDate=$(BUILD_TIMESTAMP) \ -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=$(BUILD_CODENAME) \ -X github.com/crowdsecurity/crowdsec/pkg/cwversion.Tag=$(BUILD_TAG) \ diff --git a/cmd/crowdsec-cli/Makefile b/cmd/crowdsec-cli/Makefile index 32e8388da..442aa2a42 100644 --- a/cmd/crowdsec-cli/Makefile +++ b/cmd/crowdsec-cli/Makefile @@ -7,7 +7,6 @@ GOGET=$(GOCMD) get BINARY_NAME=cscli PREFIX?="/" BIN_PREFIX = $(PREFIX)"/usr/local/bin/" -LD_OPTS=-ldflags="-s -w" all: clean build diff --git a/cmd/crowdsec/Makefile b/cmd/crowdsec/Makefile index bb9239dbb..724e41f60 100644 --- a/cmd/crowdsec/Makefile +++ b/cmd/crowdsec/Makefile @@ -13,7 +13,6 @@ DATA_PREFIX = $(PREFIX)"/var/run/crowdsec/" PID_DIR = $(PREFIX)"/var/run/" SYSTEMD_PATH_FILE="/etc/systemd/system/crowdsec.service" -LD_OPTS=-ldflags="-s -w" all: clean test build