Bump go version to latest ones
[ci-management.git] / 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}