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 10ffb84Copy full SHA for 10ffb84
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?="-buildid= -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,10 @@ lint:
41
42
build:
43
CGO_ENABLED=0 go build \
44
+ -trimpath \
45
+ -buildmode=pie \
46
+ -mod=readonly \
47
+ -modcacherw \
48
-ldflags $(LDFLAGS) \
49
-o dist/ \
50
.
0 commit comments