|
|
@ -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.5 |
|
|
|
local TERMUX_GO_VERSION=go1.13.6 |
|
|
|
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" \ |
|
|
|
512103d7ad296467814a6e3f635631bd35574cab3369a97a323c9a585ccaa569 |
|
|
|
a1bc06deb070155c4f67c579f896a45eeda5a8fa54f35ba233304074c4abbbbd |
|
|
|
|
|
|
|
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" ) |
|
|
|
else |
|
|
|