From 905ddfef193e62c0933ce693373a1c112c3bb477 Mon Sep 17 00:00:00 2001 From: Huang Jianan Date: Fri, 28 Apr 2023 16:33:00 +0800 Subject: [PATCH] contrib: support nydus-overlayfs and ctr-remote on different platforms Otherwise, the binary we compiled cannot run on other platforms such as arm. Signed-off-by: Huang Jianan --- contrib/ctr-remote/Makefile | 2 +- contrib/nydus-overlayfs/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ctr-remote/Makefile b/contrib/ctr-remote/Makefile index a371d849dba..3659dd56ad8 100644 --- a/contrib/ctr-remote/Makefile +++ b/contrib/ctr-remote/Makefile @@ -1,7 +1,7 @@ GIT_COMMIT := $(shell git rev-list -1 HEAD) BUILD_TIME := $(shell date -u +%Y%m%d.%H%M) PACKAGES ?= $(shell go list ./... | grep -v /vendor/) -GOARCH ?= amd64 +GOARCH ?= $(shell go env GOARCH) GOPROXY ?= https://goproxy.io ifdef GOPROXY diff --git a/contrib/nydus-overlayfs/Makefile b/contrib/nydus-overlayfs/Makefile index f6b2a3d4134..49274d840c2 100644 --- a/contrib/nydus-overlayfs/Makefile +++ b/contrib/nydus-overlayfs/Makefile @@ -1,7 +1,7 @@ GIT_COMMIT := $(shell git rev-parse --verify HEAD --short=7) BUILD_TIME := $(shell date -u +%Y%m%d.%H%M) PACKAGES ?= $(shell go list ./... | grep -v /vendor/) -GOARCH ?= amd64 +GOARCH ?= $(shell go env GOARCH) GOPROXY ?= https://goproxy.io ifdef GOPROXY