From 7fb8e0522e7c9d655c80b19f640d887c6fc96a2b Mon Sep 17 00:00:00 2001 From: Andjelko Iharos Date: Tue, 6 Apr 2021 16:39:19 +0200 Subject: [PATCH] BUILD/MINOR: add -trimpath to build options --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a826dd46..424246da 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ clean: .PHONY: build build: mkdir -p ${DATAPLANEAPI_PATH}/build - CGO_ENABLED=0 go build -ldflags "-X main.GitRepo=${GIT_REPO} -X main.GitTag=${GIT_LAST_TAG} -X main.GitCommit=${GIT_HEAD_COMMIT} -X main.GitDirty=${GIT_MODIFIED} -X main.BuildTime=${BUILD_DATE}" -o ${DATAPLANEAPI_PATH}/build/dataplaneapi ${DATAPLANEAPI_PATH}/cmd/dataplaneapi/ + CGO_ENABLED=0 go build -trimpath -ldflags "-X main.GitRepo=${GIT_REPO} -X main.GitTag=${GIT_LAST_TAG} -X main.GitCommit=${GIT_HEAD_COMMIT} -X main.GitDirty=${GIT_MODIFIED} -X main.BuildTime=${BUILD_DATE}" -o ${DATAPLANEAPI_PATH}/build/dataplaneapi ${DATAPLANEAPI_PATH}/cmd/dataplaneapi/ .PHONY: e2e e2e: build