Skip to content

Commit

Permalink
- add a hook to enable CGO for downstream build
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Shitrit <[email protected]>
  • Loading branch information
mshitrit committed Jun 2, 2024
1 parent 6549bf0 commit 854afdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ LDFLAGS="-s -w "
LDFLAGS+="-X github.com/medik8s/self-node-remediation/version.Version=${VERSION} "
LDFLAGS+="-X github.com/medik8s/self-node-remediation/version.GitCommit=${COMMIT} "
LDFLAGS+="-X github.com/medik8s/self-node-remediation/version.BuildDate=${BUILD_DATE} "
GOFLAGS=-mod=vendor CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="${LDFLAGS}" -o bin/manager main.go
GOFLAGS=-mod=vendor CGO_ENABLED=${USE_CGO:-0} GOOS=linux GOARCH=amd64 go build -ldflags="${LDFLAGS}" -o bin/manager main.go

0 comments on commit 854afdf

Please sign in to comment.