Update termux_setup_golang.sh
This commit is contained in:
parent
c8d11846b9
commit
9cf48b4910
@ -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.17.4
|
||||
local TERMUX_GO_VERSION=go1.17.5
|
||||
local TERMUX_GO_PLATFORM=linux-amd64
|
||||
|
||||
local TERMUX_BUILDGO_FOLDER
|
||||
@ -20,7 +20,7 @@ termux_setup_golang() {
|
||||
rm -Rf "$TERMUX_COMMON_CACHEDIR/go" "$TERMUX_BUILDGO_FOLDER"
|
||||
termux_download https://golang.org/dl/${TERMUX_GO_VERSION}.${TERMUX_GO_PLATFORM}.tar.gz \
|
||||
"$TERMUX_BUILDGO_TAR" \
|
||||
adab2483f644e2f8a10ae93122f0018cef525ca48d0b8764dae87cb5f4fd4206
|
||||
bd78114b0d441b029c8fe0341f4910370925a4d270a6a590668840675b0c653e
|
||||
|
||||
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" )
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user