Skip to content

Commit

Permalink
fix: update ldflags for local-release
Browse files Browse the repository at this point in the history
followup #2362

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 authored and michi-covalent committed Mar 6, 2024
1 parent 99aea5d commit 5cdc2ff
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 @@ -62,7 +62,7 @@ local-release: clean
echo Building release binary for $$OS/$$ARCH...; \
test -d release/$$OS/$$ARCH|| mkdir -p release/$$OS/$$ARCH; \
env GOOS=$$OS GOARCH=$$ARCH $(GO_BUILD) $(if $(GO_TAGS),-tags $(GO_TAGS)) \
-ldflags "-w -s -X 'github.com/cilium/cilium-cli/cli.Version=${VERSION}'" \
-ldflags "-w -s -X 'github.com/cilium/cilium-cli/defaults.CLIVersion=${VERSION}'" \
-o release/$$OS/$$ARCH/$(TARGET)$$EXT ./cmd/cilium; \
tar -czf release/$(TARGET)-$$OS-$$ARCH.tar.gz -C release/$$OS/$$ARCH $(TARGET)$$EXT; \
(cd release && sha256sum $(TARGET)-$$OS-$$ARCH.tar.gz > $(TARGET)-$$OS-$$ARCH.tar.gz.sha256sum); \
Expand Down

0 comments on commit 5cdc2ff

Please sign in to comment.