error when ARCH is no set
This commit is contained in:
parent
4428e6e75e
commit
3c06b1c83c
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -55,7 +55,11 @@ PKG = k8s.io/ingress-nginx
|
|||
|
||||
BUSTED_ARGS =-v --pattern=_test
|
||||
|
||||
ARCH ?= $(shell go env GOARCH)
|
||||
HOST_ARCH = $(shell which go >/dev/null 2>&1 && go env GOARCH)
|
||||
ARCH ?= $(HOST_ARCH)
|
||||
ifeq ($(ARCH),)
|
||||
$(error mandatory variable ARCH is empty, either set it when calling the command or make sure 'go env GOARCH' works)
|
||||
endif
|
||||
|
||||
REGISTRY ?= quay.io/kubernetes-ingress-controller
|
||||
|
||||
|
|
Loading…
Reference in a new issue