build: bump Go language and toolchain versions
What changed, and why it matters
This commit is a routine maintenance update that changes which version of the Go programming language is used to build LND. It does not change any LND source code, fix a bug, or address a security vulnerability. The only changes are version numbers in build configuration files, Docker images, CI settings, and documentation.
No security action required. Treat as a normal dependency/toolchain maintenance update. Verify the updated Go archive checksums match official golang.org releases if performing a fresh install from docs/INSTALL.md.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit bumps the declared Go language version from 1.26.8 to 1.26.10 across all tracked go.mod files and moves the build/release toolchain from Go 1.27.1 to 1.27.3 in CI workflows, Dockerfiles, the Makefile, linter config, protobuf generation script, and mobile build docs. It also updates the documented Linux archive download URLs and SHA256 checksums in docs/INSTALL.md. No application code is modified.
Changed components
go.mod filesCI/GitHub Actions workflowsDockerfilesMakefilegolangci-lint configurationprotobuf generation scriptmobile build documentationinstallation documentationInspect captured patch +38 / −38
### .github/actions/setup-go/action.yml
@@ -52,7 +52,7 @@ runs:
# The key is used to create and later look up the cache. It's made of
# four parts:
# - The base part is made from the OS name, Go version and a
- # job-specified key prefix. Example: `linux-go-1.27.1-unit-test-`.
+ # job-specified key prefix. Example: `linux-go-1.27.3-unit-test-`.
# It ensures that a job running on Linux with Go 1.27 only looks for
# caches from the same environment.
# - The unique part is the `hashFiles('**/go.sum')`, which calculates a
### .github/workflows/govulncheck.yml
@@ -40,7 +40,7 @@ defaults:
env:
# If you change this please also update GO_VERSION in Makefile (then run
# `make lint` to see where else it needs to be updated as well).
- GO_VERSION: 1.27.1
+ GO_VERSION: 1.27.3
jobs:
govulncheck:
### .github/workflows/main.yml
@@ -48,7 +48,7 @@ env:
# If you change this please also update GO_VERSION in Makefile (then run
# `make lint` to see where else it needs to be updated as well).
- GO_VERSION: 1.27.1
+ GO_VERSION: 1.27.3
jobs:
########################
### .github/workflows/release.yaml
@@ -12,7 +12,7 @@ defaults:
env:
# If you change this please also update GO_VERSION in Makefile (then run
# `make lint` to see where else it needs to be updated as well).
- GO_VERSION: 1.27.1
+ GO_VERSION: 1.27.3
jobs:
########################
### .golangci.yml
@@ -3,7 +3,7 @@ version: "2"
run:
# If you change this please also update GO_VERSION in Makefile (then run
# `make lint` to see where else it needs to be updated as well).
- go: "1.27.1"
+ go: "1.27.3"
# Abort after 10 minutes.
timeout: 10m
### Dockerfile
@@ -1,6 +1,6 @@
# If you change this please also update GO_VERSION in Makefile (then run
# `make lint` to see where else it needs to be updated as well).
-FROM golang:1.27.1-alpine as builder
+FROM golang:1.27.3-alpine as builder
# Pass a tag, branch or a commit using build-arg. This allows a docker
# image to be built from a specified Git state. The default image
### Makefile
@@ -36,7 +36,7 @@ ACTIVE_GO_VERSION_MINOR := $(shell echo $(ACTIVE_GO_VERSION) | cut -d. -f2)
# GO_VERSION is the Go version used for the release build, docker files, and
# GitHub Actions. This is the reference version for the project. All other Go
# versions are checked against this version.
-GO_VERSION = 1.27.1
+GO_VERSION = 1.27.3
GOBUILD := $(GOCC) build -v
GOINSTALL := $(GOCC) install -v
### actor/go.mod
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/actor
-go 1.26.8
+go 1.26.10
require (
github.com/btcsuite/btclog/v2 v2.0.1-0.20250602222548-9967d19bb084
### cert/go.mod
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/cert
-go 1.26.8
+go 1.26.10
require github.com/stretchr/testify v1.8.2
### clock/go.mod
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/clock
-go 1.26.8
+go 1.26.10
require github.com/stretchr/testify v1.8.2
### dev.Dockerfile
@@ -1,6 +1,6 @@
# If you change this please also update GO_VERSION in Makefile (then run
# `make lint` to see where else it needs to be updated as well).
-FROM golang:1.27.1-alpine AS builder
+FROM golang:1.27.3-alpine AS builder
LABEL maintainer="Olaoluwa Osuntokun <laolu@lightning.engineering>"
### docker/btcd/Dockerfile
@@ -1,6 +1,6 @@
# If you change this please also update GO_VERSION in Makefile (then run
# `make lint` to see where else it needs to be updated as well).
-FROM golang:1.27.1-alpine AS builder
+FROM golang:1.27.3-alpine AS builder
LABEL maintainer="Olaoluwa Osuntokun <laolu@lightning.engineering>"
### docs/INSTALL.md
@@ -93,23 +93,23 @@ following build dependencies are required:
### Installing Go
-`lnd` is written in Go, with a minimum version of `1.26.8` (or, in case this
+`lnd` is written in Go, with a minimum version of `1.26.10` (or, in case this
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:
<details>
<summary>Linux (x86-64)</summary>
```
- wget https://dl.google.com/go/go1.26.8.linux-amd64.tar.gz
- echo "d0f743b33e8d8945e6b1f432edd15785c70507121d6e2a723b21285eddf8b57b go1.26.8.linux-amd64.tar.gz" | sha256sum --check
+ wget https://dl.google.com/go/go1.26.10.linux-amd64.tar.gz
+ echo "ccfe7ae822d2c2f41f4fe7c956199967a4dac22d0ee0d2b2bfdb440aab3b20c5 go1.26.10.linux-amd64.tar.gz" | sha256sum --check
```
- The command above should output `go1.26.8.linux-amd64.tar.gz: OK`. If it
+ The command above should output `go1.26.10.linux-amd64.tar.gz: OK`. If it
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:
```
- sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.26.8.linux-amd64.tar.gz
+ sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.26.10.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
```
</details>
@@ -118,15 +118,15 @@ requires). To install, run one of the following commands for your OS:
<summary>Linux (ARMv6)</summary>
```
- wget https://dl.google.com/go/go1.26.8.linux-armv6l.tar.gz
- echo "eab440beabf395870752021fa74cedf04f97b61e43ebbe005ecbb98b94e55697 go1.26.8.linux-armv6l.tar.gz" | sha256sum --check
+ wget https://dl.google.com/go/go1.26.10.linux-armv6l.tar.gz
+ echo "7d89fd32259eb0ff647381e8c3465dc32ccfc7f71cb7b9bcd95604c3481f5109 go1.26.10.linux-armv6l.tar.gz" | sha256sum --check
```
- The command above should output `go1.26.8.linux-armv6l.tar.gz: OK`. If it
+ The command above should output `go1.26.10.linux-armv6l.tar.gz: OK`. If it
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:
```
- sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.26.8.linux-armv6l.tar.gz
+ sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.26.10.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
```
### fn/go.mod
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/fn/v2
-go 1.26.8
+go 1.26.10
require (
github.com/stretchr/testify v1.8.1
### go.mod
@@ -213,7 +213,7 @@ replace google.golang.org/protobuf => github.com/lightninglabs/protobuf-go-hex-d
// If you change this please also update docs/INSTALL.md and all other go.mod
// files. The release build toolchain version is tracked separately by
// GO_VERSION in Makefile.
-go 1.26.8
+go 1.26.10
retract v0.0.2
### healthcheck/go.mod
@@ -23,4 +23,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)
-go 1.26.8
+go 1.26.10
### kvdb/go.mod
@@ -139,4 +139,4 @@ require (
sigs.k8s.io/yaml v1.2.0 // indirect
)
-go 1.26.8
+go 1.26.10
### lnrpc/Dockerfile
@@ -1,6 +1,6 @@
# If you change this please also update GO_VERSION in Makefile (then run
# `make lint` to see where else it needs to be updated as well).
-FROM golang:1.27.1-bookworm
+FROM golang:1.27.3-bookworm
RUN apt-get update && apt-get install -y \
git \
### lnrpc/gen_protos_docker.sh
@@ -6,7 +6,7 @@ set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# golang docker image version used in this script.
-GO_IMAGE=docker.io/library/golang:1.27.1-alpine
+GO_IMAGE=docker.io/library/golang:1.27.3-alpine
PROTOBUF_VERSION=$(docker run --rm -v $DIR/../:/lnd -w /lnd $GO_IMAGE \
go list -f '{{.Version}}' -m google.golang.org/protobuf)
### make/builder.Dockerfile
@@ -1,6 +1,6 @@
# If you change this please also update GO_VERSION in Makefile (then run
# `make lint` to see where else it needs to be updated as well).
-FROM golang:1.27.1-bookworm
+FROM golang:1.27.3-bookworm
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.engineering>
### mobile/README.md
@@ -103,7 +103,7 @@ following commands:
```
RUN apt-get install -y wget \
- && wget -c https://dl.google.com/go/go1.27.1.linux-amd64.tar.gz -O - \
+ && wget -c https://dl.google.com/go/go1.27.3.linux-amd64.tar.gz -O - \
| tar -xz -C /usr/local
ENV GOPATH=/go
ENV PATH=$PATH:/usr/local/go/bin:/go/bin
### queue/go.mod
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/queue
-go 1.26.8
+go 1.26.10
require (
github.com/lightningnetwork/lnd/fn/v2 v2.0.8
### sqldb/go.mod
@@ -67,4 +67,4 @@ require (
modernc.org/memory v1.12.1 // indirect
)
-go 1.26.8
+go 1.26.10
### sqldb/v2/go.mod
@@ -70,4 +70,4 @@ require (
// did not yet make it into the upstream repository.
replace github.com/golang-migrate/migrate/v4 => github.com/lightninglabs/migrate/v4 v4.18.2-9023d66a-fork-pr-2.0.20251211093704-71c1eef09789
-go 1.26.8
+go 1.26.10
### ticker/go.mod
@@ -1,3 +1,3 @@
module github.com/lightningnetwork/lnd/ticker
-go 1.26.8
+go 1.26.10
### tlv/go.mod
@@ -22,4 +22,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)
-go 1.26.8
+go 1.26.10
### tools/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:1.27.1
+FROM golang:1.27.3
RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
### tools/go.mod
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/tools
-go 1.26.8
+go 1.26.10
require (
4d63.com/gocheckcompilerdirectives v1.4.0 // indirect
### tools/linters/go.mod
@@ -1,6 +1,6 @@
module github.com/lightningnetwork/lnd/tools/linters
-go 1.26.8
+go 1.26.10
require (
github.com/golangci/plugin-module-register v0.1.1
### tor/go.mod
@@ -25,4 +25,4 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)
-go 1.26.8
+go 1.26.10Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.