From 51606d501fa4f2c7778c6ca6b4c2e08797d8a8f1 Mon Sep 17 00:00:00 2001 From: qloog Date: Fri, 23 Aug 2024 20:28:12 +0800 Subject: [PATCH] chore: add CGO_ENABLED=0 for build --- .gitignore | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7f6fd93..5fabb22 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,4 @@ eagle-layout cmd/consumer/consumer cmd/server/server coverage.txt -build +bin diff --git a/Makefile b/Makefile index ba162c3..4607d34 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ all: lint test build .PHONY: build # make build, Build the binary file build: - GOOS=linux GOARCH=amd64 go build -v -ldflags ${ldflags} -o bin/$(SERVICE_NAME) cmd/server/main.go cmd/server/wire_gen.go + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -ldflags ${ldflags} -o bin/$(SERVICE_NAME) cmd/server/main.go cmd/server/wire_gen.go .PHONY: run # make run, run current project