Skip to content

Commit

Permalink
fix(make): disable cgo for build process
Browse files Browse the repository at this point in the history
  • Loading branch information
s0up4200 committed Feb 3, 2025
1 parent 722220b commit 3290418
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ coverage.txt
coverage.html
test.sh
.idea
*.png
*.pprof
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ all: clean build install
build:
@echo "Building ${BINARY_NAME}..."
@mkdir -p ${BUILD_DIR}
$(GO) build ${LDFLAGS} -o ${BUILD_DIR}/${BINARY_NAME}
CGO_ENABLED=0 $(GO) build ${LDFLAGS} -o ${BUILD_DIR}/${BINARY_NAME}

# install binary in system path
.PHONY: install
Expand Down

0 comments on commit 3290418

Please sign in to comment.