|
|
@ -1,7 +1,7 @@ |
|
|
|
# Utility function for golang-using packages to setup a go toolchain. |
|
|
|
termux_setup_golang() { |
|
|
|
if [ "$TERMUX_ON_DEVICE_BUILD" = "false" ]; then |
|
|
|
local TERMUX_GO_VERSION=go1.13.7 |
|
|
|
local TERMUX_GO_VERSION=go1.13.8 |
|
|
|
local TERMUX_GO_PLATFORM=linux-amd64 |
|
|
|
|
|
|
|
local TERMUX_BUILDGO_FOLDER=$TERMUX_COMMON_CACHEDIR/${TERMUX_GO_VERSION} |
|
|
@ -14,7 +14,7 @@ termux_setup_golang() { |
|
|
|
rm -Rf "$TERMUX_COMMON_CACHEDIR/go" "$TERMUX_BUILDGO_FOLDER" |
|
|
|
termux_download https://storage.googleapis.com/golang/${TERMUX_GO_VERSION}.${TERMUX_GO_PLATFORM}.tar.gz \ |
|
|
|
"$TERMUX_BUILDGO_TAR" \ |
|
|
|
b3dd4bd781a0271b33168e627f7f43886b4c5d1c794a4015abf34e99c6526ca3 |
|
|
|
0567734d558aef19112f2b2873caa0c600f1b4a5827930eb5a7f35235219e9d8 |
|
|
|
|
|
|
|
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" ) |
|
|
|
else |
|
|
|