fix(build): fix macOS build error
parent
3cad13388c
commit
202088446c
|
@ -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" \
|
||||
|
|
Loading…
Reference in New Issue