Update go version for git buildpack
#!/bin/bash
set -euo pipefail
-GO_VERSION="1.8.1"
+GO_VERSION="1.9"
export GoInstallDir="/tmp/go$GO_VERSION"
mkdir -p $GoInstallDir
if [ ! -f $GoInstallDir/go/bin/go ]; then
- GO_MD5="b05c0cbb28503d038a47d87a6b3b8e86"
+ GO_MD5="4577d9ba083ac86de78012c04a2981be"
URL=https://buildpacks.cloudfoundry.org/dependencies/go/go${GO_VERSION}.linux-amd64-${GO_MD5:0:8}.tar.gz
echo "-----> Download go ${GO_VERSION}"
@@ -21,6 +21,7 @@ if [ ! -f $GoInstallDir/go/bin/go ]; then
fi
tar xzf /tmp/go.tar.gz -C $GoInstallDir
+ rm /tmp/go.tar.gz
fi
if [ ! -f $GoInstallDir/go/bin/go ]; then
echo " **ERROR** Could not download go"
