build+docs: bump minimum Go version to 1.25.5

With Go 1.26 now released, this bumps the minimum required Go version
from 1.24.11 to 1.25.5 across all go.mod files and updates the
installation documentation with the correct download links and SHA256
hashes for Go 1.25.5 binaries.

The build system (Dockerfiles, Makefile, CI) was already using Go 1.25.5,
so this change aligns the go.mod minimum version to match.
This commit is contained in:
Olaoluwa Osuntokun committed 2026-02-10 12:54:10 -08:00
1 parent 83163a0fe7
commit ba1fb50380
15 files changed
+23 -23

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/actor module github.com/lightningnetwork/lnd/actor
go 1.24.9 go 1.25.5
require ( require (
github.com/btcsuite/btclog/v2 v2.0.1-0.20250602222548-9967d19bb084 github.com/btcsuite/btclog/v2 v2.0.1-0.20250602222548-9967d19bb084
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/cert module github.com/lightningnetwork/lnd/cert
go 1.24.11 go 1.25.5
require github.com/stretchr/testify v1.8.2 require github.com/stretchr/testify v1.8.2
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/clock module github.com/lightningnetwork/lnd/clock
go 1.24.11 go 1.25.5
require github.com/stretchr/testify v1.8.2 require github.com/stretchr/testify v1.8.2
+9 -9
View File
@@ -93,7 +93,7 @@ following build dependencies are required:
### Installing Go ### Installing Go
`lnd` is written in Go, with a minimum version of `1.24.11` (or, in case this `lnd` is written in Go, with a minimum version of `1.25.5` (or, in case this
document gets out of date, whatever the Go version in the main `go.mod` file document gets out of date, whatever the Go version in the main `go.mod` file
requires). To install, run one of the following commands for your OS: requires). To install, run one of the following commands for your OS:
@@ -101,15 +101,15 @@ requires). To install, run one of the following commands for your OS:
<summary>Linux (x86-64)</summary> <summary>Linux (x86-64)</summary>
``` ```
wget https://dl.google.com/go/go1.24.11.linux-amd64.tar.gz wget https://dl.google.com/go/go1.25.5.linux-amd64.tar.gz
echo "bceca00afaac856bc48b4cc33db7cd9eb383c81811379faed3bdbc80edb0af65 go1.24.11.linux-amd64.tar.gz" | sha256sum --check echo "9e9b755d63b36acf30c12a9a3fc379243714c1c6d3dd72861da637f336ebb35b go1.25.5.linux-amd64.tar.gz" | sha256sum --check
``` ```
The command above should output `go1.24.11.linux-amd64.tar.gz: OK`. If it The command above should output `go1.25.5.linux-amd64.tar.gz: OK`. If it
doesn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install doesn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install
this version of Go. If it matches, then proceed to install Go: this version of Go. If it matches, then proceed to install Go:
``` ```
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.24.11.linux-amd64.tar.gz sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.25.5.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin export PATH=$PATH:/usr/local/go/bin
``` ```
</details> </details>
@@ -118,15 +118,15 @@ requires). To install, run one of the following commands for your OS:
<summary>Linux (ARMv6)</summary> <summary>Linux (ARMv6)</summary>
``` ```
wget https://dl.google.com/go/go1.24.11.linux-armv6l.tar.gz wget https://dl.google.com/go/go1.25.5.linux-armv6l.tar.gz
echo "24d712a7e8ea2f429c05bc67287249e0291f2fe0ea6d6ff268f11b7343ad0f47 go1.24.11.linux-armv6l.tar.gz" | sha256sum --check echo "0b27e3dec8d04899d6941586d2aa2721c3dee67c739c1fc1b528188f3f6e8ab5 go1.25.5.linux-armv6l.tar.gz" | sha256sum --check
``` ```
The command above should output `go1.24.11.linux-armv6l.tar.gz: OK`. If it The command above should output `go1.25.5.linux-armv6l.tar.gz: OK`. If it
isn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install isn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install
this version of Go. If it matches, then proceed to install Go: this version of Go. If it matches, then proceed to install Go:
``` ```
sudo rm -rf /usr/local/go && tar -C /usr/local -xzf go1.24.11.linux-armv6l.tar.gz sudo rm -rf /usr/local/go && tar -C /usr/local -xzf go1.25.5.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin export PATH=$PATH:/usr/local/go/bin
``` ```
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/fn/v2 module github.com/lightningnetwork/lnd/fn/v2
go 1.24.11 go 1.25.5
require ( require (
github.com/stretchr/testify v1.8.1 github.com/stretchr/testify v1.8.1
+1 -1
View File
@@ -219,6 +219,6 @@ replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-d
// If you change this please also update docs/INSTALL.md and GO_VERSION in // If you change this please also update docs/INSTALL.md and GO_VERSION in
// Makefile (then run `make lint` to see where else it needs to be updated as // Makefile (then run `make lint` to see where else it needs to be updated as
// well). // well).
go 1.24.11 go 1.25.5
retract v0.0.2 retract v0.0.2
+1 -1
View File
@@ -24,4 +24,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
) )
go 1.24.11 go 1.25.5
+1 -1
View File
@@ -147,4 +147,4 @@ replace github.com/ulikunitz/xz => github.com/ulikunitz/xz v0.5.11
// https://deps.dev/advisory/OSV/GO-2021-0053?from=%2Fgo%2Fgithub.com%252Fgogo%252Fprotobuf%2Fv1.3.1 // https://deps.dev/advisory/OSV/GO-2021-0053?from=%2Fgo%2Fgithub.com%252Fgogo%252Fprotobuf%2Fv1.3.1
replace github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.2 replace github.com/gogo/protobuf => github.com/gogo/protobuf v1.3.2
go 1.24.11 go 1.25.5
+1 -1
View File
@@ -4,4 +4,4 @@ require github.com/lightningnetwork/lnd/ticker v1.0.0
replace github.com/lightningnetwork/lnd/ticker v1.0.0 => ../ticker replace github.com/lightningnetwork/lnd/ticker v1.0.0 => ../ticker
go 1.24.11 go 1.25.5
+1 -1
View File
@@ -75,4 +75,4 @@ require (
modernc.org/token v1.1.0 // indirect modernc.org/token v1.1.0 // indirect
) )
go 1.24.11 go 1.25.5
+1 -1
View File
@@ -1,3 +1,3 @@
module github.com/lightningnetwork/lnd/ticker module github.com/lightningnetwork/lnd/ticker
go 1.24.11 go 1.25.5
+1 -1
View File
@@ -22,4 +22,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
) )
go 1.24.11 go 1.25.5
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/tools module github.com/lightningnetwork/lnd/tools
go 1.24.11 go 1.25.5
require ( require (
4d63.com/gocheckcompilerdirectives v1.3.0 // indirect 4d63.com/gocheckcompilerdirectives v1.3.0 // indirect
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/tools/linters module github.com/lightningnetwork/lnd/tools/linters
go 1.24.11 go 1.25.5
require ( require (
github.com/golangci/plugin-module-register v0.1.1 github.com/golangci/plugin-module-register v0.1.1
+1 -1
View File
@@ -23,4 +23,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
) )
go 1.24.11 go 1.25.5