Skip to content

Commit

Permalink
chore: add CGO_ENABLED=0 for build
Browse files Browse the repository at this point in the history
  • Loading branch information
qloog committed Aug 23, 2024
1 parent 6e84c7a commit 51606d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ eagle-layout
cmd/consumer/consumer
cmd/server/server
coverage.txt
build
bin
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51606d5

Please sign in to comment.