do not require go for building

This commit is contained in:
Elvin Efendi 2020-03-18 20:00:37 -04:00
parent 7627757081
commit 4428e6e75e
2 changed files with 9 additions and 5 deletions

View file

@ -43,7 +43,10 @@ KUBE_ROOT=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd -P)
FLAGS=$@
PKG=k8s.io/ingress-nginx
ARCH=$(go env GOARCH)
ARCH=${ARCH:-}
if [[ -z "$ARCH" ]]; then
ARCH=$(go env GOARCH)
fi
# create output directory as current user to avoid problem with docker.
mkdir -p "${KUBE_ROOT}/bin" "${KUBE_ROOT}/bin/${ARCH}"