From e663f67b55355576aa09c00a025795abf14e2c00 Mon Sep 17 00:00:00 2001 From: nayihz Date: Wed, 27 Mar 2024 09:23:59 +0800 Subject: [PATCH] fix: failed to build binary by make retina-binary --- .gitignore | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0dd7f8d381..197359b010 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,7 @@ site/.docusaurus/ site/node_modules/ hack/tools/bin - +output #vscode .vscode/ diff --git a/Makefile b/Makefile index 5febf7504d..41d4725fca 100644 --- a/Makefile +++ b/Makefile @@ -144,8 +144,8 @@ retina: ## builds both retina and kapctl binaries $(MAKE) retina-binary kubectl-retina retina-binary: ## build the Retina binary - go generate ./... - export CGO_ENABLED=0 + export CGO_ENABLED=0 && \ + go generate ./... && \ go build -v -o $(RETINA_BUILD_DIR)/retina$(EXE_EXT) -gcflags="-dwarflocationlists=true" -ldflags "-X main.version=$(TAG) -X main.applicationInsightsID=$(APP_INSIGHTS_ID)" $(RETINA_DIR)/main.go kubectl-retina-binary-%: ## build kubectl plugin locally.