diff --git a/build.sh b/build.sh index a34b3a9..c4e1378 100755 --- a/build.sh +++ b/build.sh @@ -17,6 +17,7 @@ dist() { echo "try build GOOS=$1 GOARCH=$2" export GOOS=$g export GOARCH=$a + export CGO_ENABLED=0 go build -v -trimpath -o "$BIN_DIR/redis-shake" "./cmd/redis-shake" unset GOOS unset GOARCH