File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,14 @@ K8S_MODULES_MAJOR_VER=$(shell echo $$(($(firstword $(K8S_MODULES_VER)) + 1)))
4343K8S_MODULES_MINOR_VER =$(word 2,$(K8S_MODULES_VER ) )
4444
4545LDFLAGS :=
46+ LDFLAGS += -s -w
4647LDFLAGS += -X github.com/redhat-certification/chart-verifier/cmd.CommitIDLong=$(COMMIT_ID_LONG )
4748LDFLAGS += -X github.com/redhat-certification/chart-verifier/internal/chartverifier/checks.defaultMockedKubeVersionString=v$(K8S_MODULES_MAJOR_VER ) .$(K8S_MODULES_MINOR_VER )
4849
4950.PHONY : bin
5051bin :
5152 CGO_ENABLED=0 go build \
53+ -trimpath \
5254 -ldflags ' $(LDFLAGS)' \
5355 -o ./out/chart-verifier main.go
5456
@@ -59,7 +61,8 @@ lint: install.golangci-lint
5961.PHONY : bin_win
6062bin_win :
6163 env GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build \
62- -ldflags " -X 'github.com/redhat-certification/chart-verifier/cmd.CommitIDLong=$( COMMIT_ID_LONG) '" \
64+ -trimpath \
65+ -ldflags " -s -w -X 'github.com/redhat-certification/chart-verifier/cmd.CommitIDLong=$( COMMIT_ID_LONG) '" \
6366 -o .\o ut\c hart-verifier.exe main.go
6467
6568.PHONY : test
You can’t perform that action at this time.
0 commit comments