Skip to content

Commit

Permalink
BUILD/MINOR: add -trimpath to build options
Browse files Browse the repository at this point in the history
  • Loading branch information
aiharos committed Apr 6, 2021
1 parent 6acd2dd commit 7fb8e05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fb8e05

Please sign in to comment.