Skip to content

Commit

Permalink
build: disable cgo globally
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Apr 6, 2023
1 parent 3fb96a1 commit 17f87a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fi

mkdir -p "$BIN_DIR"

GOOS="$GOOS" GOARCH="$GOARCH" GOARM="$GOARM" go build -o "$BIN_DIR"/"$FILENAME" "$SRC_DIR"
CGO_ENABLED=0 GOOS="$GOOS" GOARCH="$GOARCH" GOARM="$GOARM" go build -o "$BIN_DIR"/"$FILENAME" "$SRC_DIR"

END_MSG="--- ✅ DONE ($APP_NAME $GOOS/$ARCH)"
END_MSG_LENGTH="${#END_MSG}"
Expand Down

0 comments on commit 17f87a0

Please sign in to comment.