From 1863073cb06fa922cce4d78312470637cbdf3a7e Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 14 May 2026 17:32:02 -0700 Subject: [PATCH] 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). --- .github/workflows/Dockerfile | 2 +- .github/workflows/main.yml | 2 +- README.md | 2 +- btcec/go.mod | 2 +- btcutil/go.mod | 2 +- btcutil/psbt/go.mod | 2 +- chaincfg/chainhash/go.mod | 2 +- docs/code_contribution_guidelines.md | 2 +- docs/installation.md | 2 +- go.mod | 2 +- v2transport/go.mod | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/Dockerfile b/.github/workflows/Dockerfile index baf7f7f9..81fff522 100644 --- a/.github/workflows/Dockerfile +++ b/.github/workflows/Dockerfile @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4ae3f2b7..f290248b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/README.md b/README.md index b5d91464..53e7887c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/btcec/go.mod b/btcec/go.mod index 8f00b8a0..6e27d278 100644 --- a/btcec/go.mod +++ b/btcec/go.mod @@ -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 diff --git a/btcutil/go.mod b/btcutil/go.mod index 00cd4d9d..1e57a544 100644 --- a/btcutil/go.mod +++ b/btcutil/go.mod @@ -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 diff --git a/btcutil/psbt/go.mod b/btcutil/psbt/go.mod index b1c4ac1c..26a60576 100644 --- a/btcutil/psbt/go.mod +++ b/btcutil/psbt/go.mod @@ -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 diff --git a/chaincfg/chainhash/go.mod b/chaincfg/chainhash/go.mod index 538221a4..3f7b82aa 100644 --- a/chaincfg/chainhash/go.mod +++ b/chaincfg/chainhash/go.mod @@ -1,3 +1,3 @@ module github.com/btcsuite/btcd/chaincfg/chainhash -go 1.22 +go 1.25 diff --git a/docs/code_contribution_guidelines.md b/docs/code_contribution_guidelines.md index ecfa0f9f..d9c8e797 100644 --- a/docs/code_contribution_guidelines.md +++ b/docs/code_contribution_guidelines.md @@ -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 diff --git a/docs/installation.md b/docs/installation.md index 71a6e010..565d0d56 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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 diff --git a/go.mod b/go.mod index 83ec4d3e..04fe6cef 100644 --- a/go.mod +++ b/go.mod @@ -66,6 +66,6 @@ retract ( v0.13.0-beta ) -go 1.23.2 +go 1.25 replace github.com/btcsuite/btcd/btcutil => ./btcutil diff --git a/v2transport/go.mod b/v2transport/go.mod index 30b1505a..d41bbeaf 100644 --- a/v2transport/go.mod +++ b/v2transport/go.mod @@ -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