From ad3a13e56524390a79cd811ddbe0b0e208606f2a Mon Sep 17 00:00:00 2001 From: Stanislav Chlebec Date: Wed, 6 Mar 2019 16:09:40 +0000 Subject: [PATCH] fix the building on ARM64 platform - currently there is no glide version 0.13.2 for ARM64 platform - see https://github.com/Masterminds/glide/issues/1044 Signed-off-by: Stanislav Chlebec --- docker/dev_sfc_controller_alpine/build-glide.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docker/dev_sfc_controller_alpine/build-glide.sh b/docker/dev_sfc_controller_alpine/build-glide.sh index 64b987f5..86a7488a 100755 --- a/docker/dev_sfc_controller_alpine/build-glide.sh +++ b/docker/dev_sfc_controller_alpine/build-glide.sh @@ -13,4 +13,17 @@ mkdir -p $GOPATH # install golint, gvt & Glide go get -u github.com/golang/lint/golint go get -u github.com/FiloSottile/gvt -curl https://glide.sh/get | sh \ No newline at end of file +BUILDARCH=`uname -m` +case "$BUILDARCH" in + "aarch64" ) + go get github.com/Masterminds/glide + ;; + + "x86_64" ) + curl https://glide.sh/get | sh + ;; + * ) + echo "Architecture ${BUILDARCH} is not supported." + exit + ;; +esac