We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 659b03f commit ba78328Copy full SHA for ba78328
Makefile
@@ -13,7 +13,7 @@ else
13
BUILD_DATE ?= $(shell date $(DATE_FMT))
14
endif
15
PKG=github.com/hashicorp/vault-csi-provider/internal/version
16
-LDFLAGS?="-X '$(PKG).BuildVersion=$(VERSION)' \
+LDFLAGS?="-s -w -extldflags=-zrelro -extldflags=-znow -X '$(PKG).BuildVersion=$(VERSION)' \
17
-X '$(PKG).BuildDate=$(BUILD_DATE)' \
18
-X '$(PKG).GoVersion=$(shell go version)'"
19
K8S_VERSION?=v1.22.2
@@ -41,6 +41,7 @@ lint:
41
42
build:
43
CGO_ENABLED=0 go build \
44
+ -trimpath \
45
-ldflags $(LDFLAGS) \
46
-o dist/ \
47
.
0 commit comments