Skip to content

Commit ff48671

Browse files
authored
Merge pull request #13164 from sivchari/bump-go1.25.5
✨ Bump Go to v1.25.5
2 parents 308d5a9 + 5471199 commit ff48671

File tree

13 files changed

+17
-25
lines changed

13 files changed

+17
-25
lines changed

.github/workflows/pr-golangci-lint.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ jobs:
1111
golangci:
1212
name: lint
1313
runs-on: ubuntu-latest
14-
env:
15-
# Required with Go 1.24 to enable usage of synctest in unit tests
16-
# Can be removed after we bumped to Go 1.25.
17-
GOEXPERIMENT: synctest
1814
strategy:
1915
fail-fast: false
2016
matrix:

.golangci-kal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: "2"
22
run:
3-
go: "1.24"
3+
go: "1.25"
44
allow-parallel-runners: true
55
linters:
66
default: none

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "2"
22
run:
33
timeout: 10m
4-
go: "1.24"
4+
go: "1.25"
55
build-tags:
66
- tools
77
- e2e

Makefile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,14 @@ SHELL:=/usr/bin/env bash
2323
#
2424
# Go.
2525
#
26-
GO_VERSION ?= 1.24.11
27-
GO_DIRECTIVE_VERSION ?= 1.24.0
26+
GO_VERSION ?= 1.25.5
27+
GO_DIRECTIVE_VERSION ?= 1.25.0
2828
GO_CONTAINER_IMAGE ?= docker.io/library/golang:$(GO_VERSION)
2929

3030
# Ensure correct toolchain is used
3131
GOTOOLCHAIN = go$(GO_VERSION)
3232
export GOTOOLCHAIN
3333

34-
# Required with Go 1.24 to enable usage of synctest in unit tests
35-
# Can be removed after we bumped to Go 1.25.
36-
export GOEXPERIMENT=synctest
37-
3834
# Use GOPROXY environment variable if set
3935
GOPROXY := $(shell go env GOPROXY)
4036
ifeq ($(GOPROXY),)
@@ -195,7 +191,7 @@ TRIAGE_PARTY_VERSION ?= v1.6.0
195191
CONVERSION_VERIFIER_BIN := conversion-verifier
196192
CONVERSION_VERIFIER := $(abspath $(TOOLS_BIN_DIR)/$(CONVERSION_VERIFIER_BIN))
197193

198-
OPENAPI_GEN_VER := 2c72e55 # main branch as of 03.01.2025
194+
OPENAPI_GEN_VER := 4e65d59 # main branch as of 12.18.2025
199195
OPENAPI_GEN_BIN := openapi-gen
200196
# We are intentionally using the binary without version suffix, to avoid the version
201197
# in generated files.

Tiltfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ def load_provider_tilt_files():
172172

173173
tilt_helper_dockerfile_header = """
174174
# Tilt image
175-
FROM golang:1.24.11 as tilt-helper
175+
FROM golang:1.25.5 as tilt-helper
176176
# Install delve. Note this should be kept in step with the Go release minor version.
177-
RUN go install github.com/go-delve/delve/cmd/dlv@v1.24
177+
RUN go install github.com/go-delve/delve/cmd/dlv@v1.25
178178
# Support live reloading with Tilt
179179
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/tilt-dev/rerun-process-wrapper/master/restart.sh && \
180180
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/tilt-dev/rerun-process-wrapper/master/start.sh && \
@@ -183,7 +183,7 @@ RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com
183183
"""
184184

185185
tilt_dockerfile_header = """
186-
FROM golang:1.24.11 as tilt
186+
FROM golang:1.25.5 as tilt
187187
WORKDIR /
188188
COPY --from=tilt-helper /process.txt .
189189
COPY --from=tilt-helper /start.sh .

cloudbuild-nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ options:
55
substitution_option: ALLOW_LOOSE
66
machineType: 'E2_HIGHCPU_8'
77
steps:
8-
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud@sha256:63840f133e0dfeea0af9ef391210da7fab9d2676172e2967fccab0cd6110c4e7' # v20250513-9264efb079
8+
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud@sha256:8d6a3a5b895e6776dbe9115b75db1412fbe57299b8db329d45cb54680e462b0b' # v20251211-4c812d4cd8
99
entrypoint: make
1010
env:
1111
- DOCKER_CLI_EXPERIMENTAL=enabled

cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ options:
55
substitution_option: ALLOW_LOOSE
66
machineType: 'E2_HIGHCPU_8'
77
steps:
8-
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud@sha256:63840f133e0dfeea0af9ef391210da7fab9d2676172e2967fccab0cd6110c4e7' # v20250513-9264efb079
8+
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud@sha256:8d6a3a5b895e6776dbe9115b75db1412fbe57299b8db329d45cb54680e462b0b' # v20251211-4c812d4cd8
99
entrypoint: make
1010
env:
1111
- DOCKER_CLI_EXPERIMENTAL=enabled

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/cluster-api
22

3-
go 1.24.0
3+
go 1.25.0
44

55
require (
66
github.com/MakeNowJust/heredoc v1.0.0

hack/ensure-go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ EOF
3838
local go_version
3939
IFS=" " read -ra go_version <<< "$(go version)"
4040
local minimum_go_version
41-
minimum_go_version=go1.24
41+
minimum_go_version=go1.25
4242
if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
4343
cat <<EOF
4444
Detected go version: ${go_version[*]}.

hack/tools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module sigs.k8s.io/cluster-api/hack/tools
22

3-
go 1.24.0
3+
go 1.25.0
44

55
replace sigs.k8s.io/cluster-api => ../../
66

0 commit comments

Comments
 (0)