golang: update to 1.16 (#6417)
This commit is contained in:
parent
1cb0194e79
commit
47151cb409
@ -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.15.8
|
||||
_MAJOR_VERSION=1.16
|
||||
# Use the ~ deb versioning construct in the future:
|
||||
TERMUX_PKG_VERSION=2:${_MAJOR_VERSION}
|
||||
TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz
|
||||
TERMUX_PKG_SHA256=540c0ab7781084d124991321ed1458e479982de94454a98afab6acadf38497c2
|
||||
TERMUX_PKG_SHA256=7688063d55656105898f323d90a79a39c378d86fe89ae192eb3b7fc46347c95a
|
||||
TERMUX_PKG_DEPENDS="clang"
|
||||
TERMUX_PKG_NO_STATICSPLIT=true
|
||||
|
||||
|
@ -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.15.8
|
||||
local TERMUX_GO_VERSION=go1.16
|
||||
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" \
|
||||
d3379c32a90fdf9382166f8f48034c459a8cc433730bc9476d39d9082c94583b
|
||||
013a489ebb3e24ef3d915abe5b94c3286c070dfe0818d5bca8108f1d6e8440d2
|
||||
|
||||
( 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