Skip to content

Commit

Permalink
Specify GOARCH even when our Go is from gimme (#147)
Browse files Browse the repository at this point in the history
Before these changes, gimme go will `unset GOARCH` and we will always
build amd64 binaries.

Signed-off-by: Maya Rashish <mrashish@redhat.com>
  • Loading branch information
maya-r committed Feb 9, 2023
1 parent 40aec59 commit 7ae7b5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hack/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ae7b5a

Please sign in to comment.