Bump go version to latest ones 70/2070/3
authorYolanda Robla <yroblamo@redhat.com>
Thu, 28 Nov 2019 11:54:09 +0000 (12:54 +0100)
committerYolanda Robla <yroblamo@redhat.com>
Tue, 3 Dec 2019 09:34:21 +0000 (10:34 +0100)
For latest code to run it is needed to have latest
go version. So bumping that, and also adding a
removal of the previous go versions that can give
conflict.

Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: Iba8b8e5c460d9b917a96d757ba3f7c9827afcec6

jjb/shell/install_go.sh

index a9f6ffd..d5b344c 100755 (executable)
@@ -19,7 +19,7 @@ if [ -z "${GO_URL}" ]; then
 fi
 
 if [ -z "${GO_VERSION}" ]; then
-    GO_VERSION='go1.12.linux-amd64.tar.gz'
+    GO_VERSION='go1.13.4.linux-amd64.tar.gz'
 fi
 
 set -e -u -x -o pipefail
@@ -28,4 +28,5 @@ echo "---> Installing golang from ${GO_URL} with version ${GO_VERSION}"
 
 # install go
 wget ${GO_URL}/${GO_VERSION}
+sudo rm -rf /usr/local/go
 sudo tar -C /usr/local -xzf ${GO_VERSION}