golang: update to 1.17.6

This commit is contained in:
Arun 2022-01-12 08:10:47 +05:30 committed by Henrik Grimler
parent 19b5640ed6
commit 1fe661b544
2 changed files with 4 additions and 4 deletions

View File

@ -2,11 +2,11 @@ TERMUX_PKG_HOMEPAGE=https://golang.org/
TERMUX_PKG_DESCRIPTION="Go programming language compiler"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
_MAJOR_VERSION=1.17.5
_MAJOR_VERSION=1.17.6
# Use the ~ deb versioning construct in the future:
TERMUX_PKG_VERSION=3:${_MAJOR_VERSION}
TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz
TERMUX_PKG_SHA256=3defb9a09bed042403195e872dcbc8c6fae1485963332279668ec52e80a95a2d
TERMUX_PKG_SHA256=4dc1bbf3ff61f0c1ff2b19355e6d88151a70126268a47c761477686ef94748c8
TERMUX_PKG_DEPENDS="clang"
TERMUX_PKG_NO_STATICSPLIT=true

View File

@ -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.5
local TERMUX_GO_VERSION=go1.17.6
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" \
bd78114b0d441b029c8fe0341f4910370925a4d270a6a590668840675b0c653e
231654bbf2dab3d86c1619ce799e77b03d96f9b50770297c8f4dff8836fc8ca2
( cd "$TERMUX_COMMON_CACHEDIR"; tar xf "$TERMUX_BUILDGO_TAR"; mv go "$TERMUX_BUILDGO_FOLDER"; rm "$TERMUX_BUILDGO_TAR" )
else