From 5a9484e3c46b77a347a83532506955beac611256 Mon Sep 17 00:00:00 2001 From: Tsic Date: Tue, 26 Sep 2023 18:01:42 +0800 Subject: [PATCH] fix build failed on linux/aarch64 Resolve go: unsupported GOOS/GOARCH pair linux/aarch64 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b4b06af..8493929 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -COMMONENVVAR=GOOS=$(shell uname -s | tr A-Z a-z) GOARCH=$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m))) +COMMONENVVAR=GOOS=$(shell uname -s | tr A-Z a-z) GOARCH=$(subst aarch64,arm64,$(subst x86_64,amd64,$(patsubst i%86,386,$(shell uname -m)))) BUILDENVVAR=CGO_ENABLED=0 .PHONY: all