From 7ae7b5ae2f5f81f5ccb8590c936bfbac146c3fe2 Mon Sep 17 00:00:00 2001 From: Maya Rashish Date: Thu, 9 Feb 2023 23:35:07 +0100 Subject: [PATCH] Specify GOARCH even when our Go is from gimme (#147) Before these changes, gimme go will `unset GOARCH` and we will always build amd64 binaries. Signed-off-by: Maya Rashish --- hack/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hack/common.sh b/hack/common.sh index 463464f5..5994393d 100644 --- a/hack/common.sh +++ b/hack/common.sh @@ -16,6 +16,8 @@ GOLANG_VER=${GOLANG_VER:-1.19.4} function setGoInProw() { if [[ -v PROW_JOB_ID ]] ; then + export GIMME_HOSTARCH=amd64 + export GIMME_ARCH=${GOARCH} eval $(gimme ${1}) cp -R ~/.gimme/versions/go${1}.linux.amd64 /usr/local/go fi