fix(build): fix macOS build error

pull/11542/head
Sebastian-Webster 2024-04-10 23:30:20 +12:00
parent 3cad13388c
commit 202088446c
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ BINARY_VERSION_FILE="../binary-version.json"
echo "$ldflags"
# the build takes 2 seconds
GOOS=${1:-$(go env GOOS)} GOARCH=${2:-$(go env GOARCH)} CGO_ENABLED=0 go build \
GOOS=linux GOARCH=${2:-$(go env GOARCH)} CGO_ENABLED=0 go build \
-trimpath \
--installsuffix cgo \
--ldflags "$ldflags" \