arm64 Go version for aarch64 (armV8)

This commit is contained in:
openoms
2019-05-12 10:19:24 +01:00
parent 7cb7d3cfb3
commit 8ec42c9273
3 changed files with 12 additions and 3 deletions

View File

@@ -571,9 +571,12 @@ echo ""
# Go is needed for ZAP connect later
# see https://golang.org/dl/
goVersion="1.12.5"
if [ ${isARM} -eq 1 ] || [ ${isAARCH64} -eq 1 ] ; then
if [ ${isARM} -eq 1 ] ; then
goOSversion="armv6l"
fi
if [ ${isAARCH64} -eq 1 ] ; then
goOSversion="arm64"
fi
if [ ${isX86_64} -eq 1 ] ; then
goOSversion="amd64"
fi

View File

@@ -33,9 +33,12 @@ echo "### Check Framework: GO ###"
goInstalled=$(go version 2>/dev/null | grep -c 'go')
if [ ${goInstalled} -eq 0 ];then
goVersion="1.12.5"
if [ ${isARM} -eq 1 ] || [ ${isAARCH64} -eq 1 ] ; then
if [ ${isARM} -eq 1 ] ; then
goOSversion="armv6l"
fi
if [ ${isAARCH64} -eq 1 ] ; then
goOSversion="arm64"
fi
if [ ${isX86_64} -eq 1 ] ; then
goOSversion="amd64"
fi

View File

@@ -18,9 +18,12 @@ fi
goInstalled=$(go version 2>/dev/null | grep -c 'go')
if [ ${goInstalled} -eq 0 ];then
goVersion="1.12.5"
if [ ${isARM} -eq 1 ] || [ ${isAARCH64} -eq 1 ] ; then
if [ ${isARM} -eq 1 ] ; then
goOSversion="armv6l"
fi
if [ ${isAARCH64} -eq 1 ] ; then
goOSversion="arm64"
fi
if [ ${isX86_64} -eq 1 ] ; then
goOSversion="amd64"
fi