golang: add versioned package for 1.25
authorGeorge Sapkin <redacted>
Thu, 22 Jan 2026 00:55:19 +0000 (02:55 +0200)
committerGeorge Sapkin <redacted>
Sun, 25 Jan 2026 17:23:45 +0000 (19:23 +0200)
commitca501ee61ebedecd722fb107fddac75e1c45f61e
tree97345b8bcc686e73308d8b6b060f1fa66b5ce861
parent662972a252ed3772d11db39ccb3d39afa074fc6c
golang: add versioned package for 1.25

Add versioned package for 1.25 to enable having multiple host go
versions side by side.

Set default version to 1.25 in golang-values.mk

Add unversioned dummy package to allow go-based packages to continue
using the default go host version. Packages can use it by specifying:

PKG_BUILD_DEPENDS:=golang/host

or use a specific version out of the ones that are available in that
branch by specifying:

PKG_BUILD_DEPENDS:=golang1.25/host

Host go is exposed to each package through PATH set in
GO_PKG_BUILD_CONFIG_VARS and GO_PKG_VARS.

Target go is installed through alternatives with the default version
having higher priority.

Newer versions can reuse older ones as bootstraps by setting
GO_BOOTSTRAP_VERSION package variable to older version, e.g.:

GO_BOOTSTRAP_VERSION:=1.24

All subpackages provide suffix-less names, e.g. golang, golang-src, etc.
Default versions are marked as default variants.

Link: https://github.com/openwrt/packages/pull/28309
Signed-off-by: George Sapkin <redacted>
lang/golang/go-gcc-helper
lang/golang/golang-build.sh
lang/golang/golang-compiler.mk
lang/golang/golang-package.mk
lang/golang/golang-values.mk
lang/golang/golang/Makefile
lang/golang/golang1.25/Makefile [new file with mode: 0644]
lang/golang/golang1.25/test.sh [moved from lang/golang/golang/test.sh with 65% similarity]
git clone https://git.99rst.org/PROJECT