Fix typo in hack/build-go.sh

s/GOACH/GOARCH
This commit is contained in:
Antonin Bas 2021-05-18 14:56:56 -07:00 committed by Doug Smith
parent 0308eaba0a
commit 5e8cafde59

View File

@ -3,7 +3,7 @@ set -eu
cmd=whereabouts
eval $(go env | grep -e "GOHOSTOS" -e "GOHOSTARCH")
GOOS=${GOOS:-${GOHOSTOS}}
GOARCH=${GOACH:-${GOHOSTARCH}}
GOARCH=${GOARCH:-${GOHOSTARCH}}
GOFLAGS=${GOFLAGS:-}
GLDFLAGS=${GLDFLAGS:-}
CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build ${GOFLAGS} -ldflags "${GLDFLAGS}" -o bin/${cmd} cmd/${cmd}.go