upgpkg(main/golang): 1.22.2

This commit is contained in:
Arun 2024-04-04 09:50:15 +05:30 committed by finagolfin
parent b5b07731c9
commit ca0a1e1cc9
2 changed files with 6 additions and 6 deletions

View File

@ -4,9 +4,9 @@ TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
_MAJOR_VERSION=1.22
# Use the ~ deb versioning construct in the future:
TERMUX_PKG_VERSION=3:${_MAJOR_VERSION}.1
TERMUX_PKG_VERSION=3:${_MAJOR_VERSION}.2
TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${TERMUX_PKG_VERSION#*:}.src.tar.gz
TERMUX_PKG_SHA256=79c9b91d7f109515a25fc3ecdaad125d67e6bdb54f6d4d98580f46799caea321
TERMUX_PKG_SHA256=374ea82b289ec738e968267cac59c7d5ff180f9492250254784b2044e90df5a9
TERMUX_PKG_DEPENDS="clang"
TERMUX_PKG_ANTI_BUILD_DEPENDS="clang"
TERMUX_PKG_RECOMMENDS="resolv-conf"

View File

@ -1,11 +1,11 @@
# 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.22.1
local TERMUX_GO_SHA256=aab8e15785c997ae20f9c88422ee35d962c4562212bb0f879d052a35c8307c7f
local TERMUX_GO_VERSION=go1.22.2
local TERMUX_GO_SHA256=5901c52b7a78002aeff14a21f93e0f064f74ce1360fce51c6ee68cd471216a17
if [ "$TERMUX_PKG_GO_USE_OLDER" = "true" ]; then
TERMUX_GO_VERSION=go1.21.8
TERMUX_GO_SHA256=538b3b143dc7f32b093c8ffe0e050c260b57fc9d57a12c4140a639a8dd2b4e4f
TERMUX_GO_VERSION=go1.21.9
TERMUX_GO_SHA256=f76194c2dc607e0df4ed2e7b825b5847cb37e34fc70d780e2f6c7e805634a7ea
fi
local TERMUX_GO_PLATFORM=linux-amd64