Skip to content

Commit 741dd87

Browse files
authored
Merge pull request #4490 from AkihiroSuda/go1.25
update gomodjail (0.1.3), Go (1.25), ...
2 parents ad83d18 + 3afdb13 commit 741dd87

File tree

11 files changed

+39
-18
lines changed

11 files changed

+39
-18
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: "Install go"
3131
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3232
with:
33-
go-version: "1.24"
33+
go-version: "1.25"
3434
check-latest: true
3535
- name: "Compile binaries"
3636
env:

.github/workflows/workflow-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
canary: true
3636
with:
3737
timeout: 5
38-
go-version: "1.24"
38+
go-version: "1.25"
3939
runner: ubuntu-24.04
4040
# Note: in GitHub yaml world, if `matrix.canary` is undefined, and is passed to `inputs.canary`, the job
4141
# will not run. However, if you test it, it will coerce to `false`, hence:
@@ -48,7 +48,7 @@ jobs:
4848
uses: ./.github/workflows/job-lint-project.yml
4949
with:
5050
timeout: 5
51-
go-version: "1.24"
51+
go-version: "1.25"
5252
runner: ubuntu-24.04
5353

5454
# Lint for shell and yaml files
@@ -68,10 +68,10 @@ jobs:
6868
matrix:
6969
include:
7070
# Build for both old and stable go
71-
- go-version: "1.23"
7271
- go-version: "1.24"
72+
- go-version: "1.25"
7373
# Additionally build for canary
74-
- go-version: "1.24"
74+
- go-version: "1.25"
7575
canary: true
7676
with:
7777
timeout: 10

.github/workflows/workflow-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
canary: ${{ matrix.canary && true || false }}
3131
# Windows routinely go over 5 minutes
3232
timeout: 10
33-
go-version: 1.24
33+
go-version: 1.25
3434
windows-cni-version: v0.3.1
3535
linux-cni-version: v1.7.1
3636
linux-cni-sha: 1a28a0506bfe5bcdc981caf1a49eeab7e72da8321f1119b7be85f22621013098
@@ -138,7 +138,7 @@ jobs:
138138
runner: ${{ matrix.runner }}
139139
binary: ${{ matrix.binary != '' && matrix.binary || 'nerdctl' }}
140140
canary: ${{ matrix.canary && true || false }}
141-
go-version: 1.24
141+
go-version: 1.25
142142
windows-cni-version: v0.3.1
143143
docker-version: 5:28.0.4-1~ubuntu.24.04~noble
144144
containerd-version: 2.1.3

.github/workflows/workflow-tigron.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
paths: 'mod/tigron/**'
1010

1111
env:
12-
GO_VERSION: "1.24"
12+
GO_VERSION: "1.25"
1313
GOTOOLCHAIN: local
1414

1515
jobs:

.golangci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ linters:
9999
- name: use-errors-new
100100
# 84 occurrences. Improves error testing.
101101
disabled: true
102+
- name: struct-tag
103+
# 2 occurrences.
104+
disabled: true
102105

103106
##### P1: consider making a dent on these, but not critical.
104107
- name: argument-limit
@@ -131,6 +134,9 @@ linters:
131134
- name: cognitive-complexity
132135
arguments: [205]
133136
# 441 occurrences (at default 7). We should try to lower it (involves significant refactoring).
137+
- name: var-naming
138+
# 1 occurrence.
139+
disabled: true
134140

135141
##### P2: nice to have.
136142
- name: max-public-structs
@@ -155,6 +161,9 @@ linters:
155161
- name: exported
156162
# 577 occurrences. Forces documentation of any exported symbol.
157163
disabled: true
164+
- name: unnecessary-format
165+
# Many occurrences.
166+
disabled: true
158167

159168
###### Permanently disabled. Below have been reviewed and vetted to be unnecessary.
160169
- name: line-length-limit
@@ -175,6 +184,9 @@ linters:
175184
- name: add-constant
176185
# 2605 occurrences. Kind of useful in itself, but unacceptable amount of effort to fix
177186
disabled: true
187+
- name: enforce-switch-style
188+
# Many occurrences.
189+
disabled: true
178190

179191
depguard:
180192
rules:
@@ -241,7 +253,6 @@ linters:
241253
- typeAssertChain
242254
- unlabelStmt
243255
- builtinShadow
244-
- importShadow
245256
- initClause
246257
- nestingReduce
247258
- unnecessaryBlock

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ ARG TINI_VERSION=v0.19.0@BINARY
4040
# Extra deps: Debug
4141
ARG BUILDG_VERSION=v0.5.3@BINARY
4242
# Extra deps: gomodjail
43-
ARG GOMODJAIL_VERSION=v0.1.2@0a86b34442a491fa8f5e4565e9c846fce310239c
43+
ARG GOMODJAIL_VERSION=v0.1.3@cea529ddd971b677c67d8af7e936fbc62b35b98c
4444

4545
# Test deps
4646
# Currently, the Docker Official Images and the test deps are not pinned by the hash
47-
ARG GO_VERSION=1.24
47+
ARG GO_VERSION=1.25
4848
ARG UBUNTU_VERSION=24.04
4949
ARG CONTAINERIZED_SYSTEMD_VERSION=v0.1.1
5050
ARG GOTESTSUM_VERSION=v1.12.3
5151
ARG NYDUS_VERSION=v2.3.2
5252
ARG SOCI_SNAPSHOTTER_VERSION=0.11.1
53-
ARG KUBO_VERSION=v0.35.0
53+
ARG KUBO_VERSION=v0.37.0
5454

5555
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.6.1@sha256:923441d7c25f1e2eb5789f82d987693c47b8ed987c4ab3b075d6ed2b5d6779a3 AS xx
5656

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,15 @@ fix-mod:
217217
##########################
218218
install-dev-tools:
219219
$(call title, $@)
220-
# golangci: v2.0.2 (2024-03-26)
220+
# golangci: v2.4.0 (2025-08-14)
221221
# git-validation: main (2025-02-25)
222222
# ltag: main (2025-03-04)
223223
# go-licenses: v2.0.0-alpha.1 (2024-06-27)
224224
# stubbing go-licenses with dependency upgrade due to non-compatibility with golang 1.25rc1
225225
# Issue: https://github.com/google/go-licenses/issues/312
226226
@cd $(MAKEFILE_DIR) \
227227
&& go install github.com/Shubhranshu153/go-licenses/v2@f8c503d1357dffb6c97ed3b94e912ab294dde24a \
228-
&& go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@2b224c2cf4c9f261c22a16af7f8ca6408467f338 \
228+
&& go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@43d03392d7dc3746fa776dbddd66dfcccff70651 \
229229
&& go install github.com/vbatts/git-validation@7b60e35b055dd2eab5844202ffffad51d9c93922 \
230230
&& go install github.com/containerd/ltag@66e6a514664ee2d11a470735519fa22b1a9eaabd \
231231
&& go install gotest.tools/gotestsum@0d9599e513d70e5792bb9334869f82f6e8b53d4d

hack/provisioning/kube/kind.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ readonly root
2020
# shellcheck source=/dev/null
2121
. "$root/../../scripts/lib.sh"
2222

23-
GO_VERSION=1.24
23+
GO_VERSION=1.25
2424
KIND_VERSION=v0.27.0
2525
CNI_PLUGINS_VERSION=v1.7.1
2626
# shellcheck disable=SC2034

mod/tigron/.golangci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ linters:
5454
- sloglint # no slog
5555
- testifylint # no testify
5656
- zerologlint # no zerolog
57+
- funcorder
58+
- noctx
59+
- noinlineerr
60+
- wsl_v5
5761
settings:
5862
interfacebloat:
5963
# Default is 10
@@ -91,6 +95,12 @@ linters:
9195
- "fmt.Fprint"
9296
- "fmt.Fprintln"
9397
- "fmt.Fprintf"
98+
- name: redundant-test-main-exit
99+
disabled: true
100+
- name: enforce-switch-style
101+
disabled: true
102+
- name: var-naming
103+
disabled: true
94104
depguard:
95105
rules:
96106
main:

mod/tigron/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ up:
164164
##########################
165165
install-dev-tools:
166166
$(call title, $@)
167-
# golangci: v2.0.2 (2024-03-26)
167+
# golangci: v2.4.0 (2025-08-14)
168168
# git-validation: main (2025-02-25)
169169
# ltag: main (2025-03-04)
170170
# go-licenses: v2.0.0-alpha.1 (2024-06-27)
171171
# stubbing go-licenses with dependency upgrade due to non-compatibility with golang 1.25rc1
172172
# Issue: https://github.com/google/go-licenses/issues/312
173173
@cd $(MAKEFILE_DIR) \
174-
&& go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@2b224c2cf4c9f261c22a16af7f8ca6408467f338 \
174+
&& go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@43d03392d7dc3746fa776dbddd66dfcccff70651 \
175175
&& go install github.com/vbatts/git-validation@7b60e35b055dd2eab5844202ffffad51d9c93922 \
176176
&& go install github.com/containerd/ltag@66e6a514664ee2d11a470735519fa22b1a9eaabd \
177177
&& go install github.com/Shubhranshu153/go-licenses/v2@f8c503d1357dffb6c97ed3b94e912ab294dde24a

0 commit comments

Comments
 (0)