From e1e69fa20a310814969e51095fc16e2ffb3fabb3 Mon Sep 17 00:00:00 2001 From: Beyhan Ogur Date: Mon, 11 May 2026 21:05:08 +0300 Subject: [PATCH] feat: update build script to use CGO_ENABLED variable for building --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 157a0bb..0e5218a 100755 --- a/build.sh +++ b/build.sh @@ -6,9 +6,9 @@ ENTRYPOINT="${ENTRYPOINT:-./main.go}" LDFLAGS="${LDFLAGS:--w -s}" GOOS="${GOOS:-linux}" -echo "=> Building ${BINARY} (CGO_ENABLED=0 GOOS=${GOOS})" +echo "=> Building ${BINARY} (CGO_ENABLED=${CGO_ENABLED:-1} GOOS=${GOOS})" -CGO_ENABLED=0 GOOS="${GOOS}" go build \ +CGO_ENABLED="${CGO_ENABLED:-1}" GOOS="${GOOS}" go build \ -ldflags="${LDFLAGS}" \ -o "${BINARY}" \ "${ENTRYPOINT}"