Skip to content

[v0.21.x-branch] Backport #10838: build: bump Go toolchain to 1.26.3#10849

Merged
ziggie1984 merged 3 commits into
v0.21.x-branchfrom
backport-10838-to-v0.21.x-branch
May 27, 2026
Merged

[v0.21.x-branch] Backport #10838: build: bump Go toolchain to 1.26.3#10849
ziggie1984 merged 3 commits into
v0.21.x-branchfrom
backport-10838-to-v0.21.x-branch

Conversation

@ziggie1984
Copy link
Copy Markdown
Collaborator

Backport of #10838


This PR replaces #10566 with a narrower Go version update that separates the build toolchain from the module language/minimum Go version.

The build toolchain pins move from Go 1.25.5 to Go 1.26.3 across:

  • Makefile and CI/release workflow Go version pins
  • Docker image tags used for builds, release helpers, tools, and protobuf generation
  • golangci-lint configured Go version

The module language/minimum Go version stays on the Go 1.25 line and is updated only to the latest patch release:

  • all tracked go.mod files now use go 1.25.10
  • install documentation and Go tarball checksums now reference Go 1.25.10

It also carries forward the compatibility fix discussed in #10566: Go 1.26 no longer supports the windows/arm port, so the release target and CI arm matrix now use windows-arm64 instead.

This PR also adds a dedicated govulncheck workflow that builds the release-style lnd binary and scans it in binary mode. The workflow runs weekly, can be started manually, and runs on PRs/pushes that touch Go dependency or Go build-version surfaces. This avoids making every ordinary PR fail because the external vulnerability database changed, while still catching newly published vulnerabilities on a schedule.

No functional lnd code changes are included.

@gemini-code-assist
Copy link
Copy Markdown

Warning

Gemini encountered an error creating the summary. You can try again by commenting /gemini summary.

@ziggie1984 ziggie1984 self-assigned this May 27, 2026
@github-actions github-actions Bot added the severity-critical Requires expert review - security/consensus critical label May 27, 2026
@github-actions
Copy link
Copy Markdown

PR Severity: CRITICAL. Base: HIGH (cert/go.mod, sqldb/go.mod, lnrpc/ files). Bumped due to 30 non-test files exceeding the 20-file threshold. No functional code changes - pure Go toolchain bump. <!-- pr-severity-bot -->

@ziggie1984 ziggie1984 requested a review from yyforyongyu May 27, 2026 13:43
The tor v2 cleanup backport added a graph bootstrapper regression
test from master. Master already has the newer autopilot.ChannelGraph
interface, where ForEachNodesChannels passes a NodeID.

The v0.21.x branch still uses the older interface, where
ForEachNodesChannels passes the full autopilot.Node. Adapt only the
local test stub so this backport remains scoped.

This avoids pulling in the broader autopilot graph-cache refactor
from PR #10796 just to satisfy the release-branch test build.
@ziggie1984 ziggie1984 force-pushed the backport-10838-to-v0.21.x-branch branch from 8a7254e to 529dced Compare May 27, 2026 13:46
@ziggie1984
Copy link
Copy Markdown
Collaborator Author

Fixed the Test problem in the first commit which we oversaw while merging the #10844

@ziggie1984 ziggie1984 requested a review from starius May 27, 2026 17:22
Comment on lines +18 to +31
push:
branches:
- "master"
paths:
- ".github/workflows/govulncheck.yml"
- ".github/actions/setup-go/action.yml"
- "Makefile"
- "make/release_flags.mk"
- "**/*.go"
- "**/go.mod"
- "**/go.sum"
merge_group:
branches:
- "master"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add v0.21.x-branch to this list?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm will think about it don't want to create too much noise, master should be already giving us al the details

@ziggie1984 ziggie1984 merged commit fad437d into v0.21.x-branch May 27, 2026
49 checks passed
@ziggie1984 ziggie1984 deleted the backport-10838-to-v0.21.x-branch branch May 27, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog severity-critical Requires expert review - security/consensus critical

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants