diff --git a/Makefile b/Makefile index 061489568..ea296dc17 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,8 @@ else STRIP_FLAG := -strip=$(STRIP_PATH) endif +GOARCH ?= $(shell go env GOARCH) + # Do NOT remove the line below. This line is for CI. #export GOMODCACHE=$(PWD)/go-mod