Skip to content

Commit 3c9a3cd

Browse files
authored
Upgrade Go to 1.27.3 (agent-substrate#2984)
<!-- The PR title becomes the release note. Write it for users. --> Go has a critical security fix. Longterm we're going to automate these but dependabot can't handle it and we're undecided on solution, @MushuEE / @stshrive are looking. NOTE: we don't _have_ to bump the dockerfiles for go bumps, but in this case TLS is vulnerable so the download mechanism for gotoolchain is impacted, so I'm being extra-comprehensive. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: Yes, I reviewed everything. Trivial diff, and tests were run <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated
1 parent 872ab20 commit 3c9a3cd

18 files changed

Lines changed: 35 additions & 5 deletions

File tree

‎.github/workflows/pr-workflow.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
fetch-depth: 0
5050
- name: Setup Go
51-
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
51+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
5252
with:
5353
go-version-file: 'go.mod'
5454
# Unconditional: a released migration becoming permanent is exactly what
@@ -216,7 +216,7 @@ jobs:
216216
- name: Checkout
217217
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
218218
- name: Setup Go
219-
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
219+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
220220
with:
221221
go-version-file: 'go.mod'
222222
# Use the e2e cache below instead. setup-go's cache key is shared with

‎benchmarking/automation/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3939
# Go must be new enough to honor the `tool` directive in
4040
# hack/tools/*/go.mod (Go 1.24+). Pin a version known to match the
4141
# substrate project's pinned ko (see hack/tools/ko/go.mod).
42-
ARG GO_VERSION=1.26.3
42+
ARG GO_VERSION=1.27.3
4343
RUN curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" \
4444
| tar -C /usr/local -xz
4545
ENV PATH=/usr/local/go/bin:$PATH

‎benchmarking/locust/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN PYTHON=python3 OUT_DIR=/out benchmarking/locust/codegen/generate.sh
3535
# Stage 3: Go build of the boomer-worker worker. Lives in the same image so
3636
# runner.py can spawn it as a subprocess during headless runs of glutton.
3737
# CGO_ENABLED=0 keeps us on boomer's pure-Go ZMQ (gomq), no libzmq needed.
38-
FROM golang:1.26-bookworm AS goboomer
38+
FROM golang:1.27.3-bookworm@sha256:5c3e9b43cfd3bb95c7937462e29d87ada57b481a96fa23ad0eb61778d7a00110 AS goboomer
3939
ENV GOTOOLCHAIN=auto
4040
WORKDIR /src
4141
COPY go.mod go.sum ./

‎go.mod‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module go.ate.dev/substrate
22

33
go 1.27.0
44

5+
toolchain go1.27.3
6+
57
require (
68
cloud.google.com/go/compute/metadata v0.9.0
79
cloud.google.com/go/container v1.49.0

‎hack/tools/code-generator/go.mod‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module go.ate.dev/substrate/hack/tools/code-generator
22

33
go 1.27.0
44

5+
toolchain go1.27.3
6+
57
require (
68
github.com/fxamacker/cbor/v2 v2.9.2 // indirect
79
github.com/go-logr/logr v1.4.4 // indirect

‎hack/tools/controller-gen/go.mod‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module go.ate.dev/substrate/hack/tools/controller-gen
22

33
go 1.27.0
44

5+
toolchain go1.27.3
6+
57
require (
68
github.com/fatih/color v1.18.0 // indirect
79
github.com/fxamacker/cbor/v2 v2.9.0 // indirect

‎hack/tools/go-licenses/go.mod‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module go.ate.dev/substrate/hack/tools/go-licenses
22

33
go 1.27.0
44

5+
toolchain go1.27.3
6+
57
require (
68
github.com/davecgh/go-spew v1.1.1 // indirect
79
github.com/go-logr/logr v1.2.0 // indirect

‎hack/tools/golangci-lint/go.mod‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module go.ate.dev/substrate/hack/tools/golangci-lint
22

33
go 1.27.0
44

5+
toolchain go1.27.3
6+
57
tool github.com/golangci/golangci-lint/v2/cmd/golangci-lint
68

79
require (

‎hack/tools/gotestsum/go.mod‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module go.ate.dev/substrate/hack/tools/gotestsum
22

33
go 1.27.0
44

5+
toolchain go1.27.3
6+
57
tool gotest.tools/gotestsum
68

79
require (

‎hack/tools/kind/go.mod‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module go.ate.dev/substrate/hack/tools/kind
22

33
go 1.27.0
44

5+
toolchain go1.27.3
6+
57
tool sigs.k8s.io/kind
68

79
require (

0 commit comments

Comments
 (0)