Skip to content

Commit

Permalink
[csm-1385] Revert change to build static repctl. (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
donatwork authored Jul 19, 2024
1 parent 253b798 commit 1384d15
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions repctl/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
all: build

build:
cp -f ../scripts/gen_kubeconfig.sh ./pkg/cmd/scripts/gen_kubeconfig.sh
cp -f ../scripts/config-placeholder ./pkg/cmd/scripts/config-placeholder
go build ./cmd/repctl

# Build static binary, the build can be platform dependent so may need tweaking.
build-static:
cp -f ../scripts/gen_kubeconfig.sh ./pkg/cmd/scripts/gen_kubeconfig.sh
cp -f ../scripts/config-placeholder ./pkg/cmd/scripts/config-placeholder
CGO_ENABLED=1 CGO_LDFLAGS="-static" go build ./cmd/repctl
Expand All @@ -17,4 +23,10 @@ tools:
mocks:
mockery --all --disable-version-string

clean:
rm -f ./pkg/cmd/scripts/gen_kubeconfig.sh
rm -f ./pkg/cmd/scripts/config-placeholder
go clean -cache
rm -f repctl

.PHONY: mocks

0 comments on commit 1384d15

Please sign in to comment.