multi: bump Go toolchain to 1.25, build CI with 1.26.3

In this commit, we update every in-tree go.mod to declare go 1.25 and
have CI build with 1.26.3 (Dockerfile uses the golang:1.26-alpine base).
Docs that mention the minimum required Go version are aligned with the
new floor as well.

Fixes #2527, which flagged the README.md / go.mod version mismatch (the
README claimed 1.22 while the root + v2transport go.mod files already
required 1.23.2).
This commit is contained in:
Olaoluwa Osuntokun 2026-05-14 17:32:02 -07:00
parent e59dfeb949
commit 1863073cb0
11 changed files with 11 additions and 11 deletions

View file

@ -5,7 +5,7 @@
###########################
# Build binaries stage
###########################
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS build
FROM --platform=$BUILDPLATFORM golang:1.26-alpine AS build
ADD . /app
WORKDIR /app
# Arguments required to build binaries targetting the correct OS and CPU architectures

View file

@ -6,7 +6,7 @@ env:
GOCACHE: /home/runner/work/go/pkg/build
GOPATH: /home/runner/work/go
GOBIN: /home/runner/work/go/bin
GO_VERSION: 1.22.11
GO_VERSION: 1.26.3
jobs:
build:

View file

@ -36,7 +36,7 @@ which are both under active development.
## Requirements
[Go](http://golang.org) 1.22 or newer.
[Go](http://golang.org) 1.25 or newer.
## Installation

View file

@ -1,6 +1,6 @@
module github.com/btcsuite/btcd/btcec/v2
go 1.22
go 1.25
require (
github.com/btcsuite/btcd/chaincfg/chainhash v1.2.0

View file

@ -1,6 +1,6 @@
module github.com/btcsuite/btcd/btcutil
go 1.23.2
go 1.25
require (
github.com/aead/siphash v1.0.1

View file

@ -1,6 +1,6 @@
module github.com/btcsuite/btcd/btcutil/psbt
go 1.23.2
go 1.25
require (
github.com/btcsuite/btcd v0.24.2

View file

@ -1,3 +1,3 @@
module github.com/btcsuite/btcd/chaincfg/chainhash
go 1.22
go 1.25

View file

@ -316,7 +316,7 @@ Rejoice as you will now be listed as a [contributor](https://github.com/btcsuite
## Contribution Checklist
- [  ] All changes are Go version 1.22 compliant
- [  ] All changes are Go version 1.25 compliant
- [  ] The code being submitted is commented according to the
[Code Documentation and Commenting](#CodeDocumentation) section
- [  ] For new code: Code is accompanied by tests which exercise both

View file

@ -5,7 +5,7 @@ details on how to install on the supported operating systems.
## Requirements
[Go](http://golang.org) 1.22 or newer.
[Go](http://golang.org) 1.25 or newer.
## GPG Verification Key

2
go.mod
View file

@ -66,6 +66,6 @@ retract (
v0.13.0-beta
)
go 1.23.2
go 1.25
replace github.com/btcsuite/btcd/btcutil => ./btcutil

View file

@ -1,6 +1,6 @@
module github.com/btcsuite/btcd/v2transport
go 1.23.2
go 1.25
require (
github.com/btcsuite/btcd/btcec/v2 v2.4.0