Skip to content

Commit 1186f06

Browse files
committed
CI: drop Go 1.21
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
1 parent d98c3a5 commit 1186f06

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
strategy:
5252
matrix:
53-
go-version: [1.21.x, 1.22.x]
53+
go-version: [1.22.x, 1.23.x]
5454

5555
steps:
5656
- name: Checkout cgroups
@@ -67,7 +67,7 @@ jobs:
6767
- name: golangci-lint
6868
uses: golangci/golangci-lint-action@v6
6969
with:
70-
version: v1.57.1
70+
version: v1.62.0
7171
args: --verbose
7272
working-directory: src/github.com/containerd/cgroups
7373

@@ -78,7 +78,7 @@ jobs:
7878

7979
strategy:
8080
matrix:
81-
go-version: [1.21.x, 1.22.x]
81+
go-version: [1.22.x, 1.23.x]
8282
# Ubuntu-20.04 has cgroups v1 default; Ubuntu-22.04 has cgroups v2 default.
8383
os: [ubuntu-20.04, ubuntu-22.04]
8484

@@ -118,7 +118,7 @@ jobs:
118118
- name: Install Go
119119
uses: actions/setup-go@v5
120120
with:
121-
go-version: '1.19.x'
121+
go-version: '1.22.x'
122122
cache-dependency-path: src/github.com/containerd/cgroups
123123

124124
- name: Set env

cgroup1/memory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func getMemorySettings(resources *specs.LinuxResources) []memorySettings {
433433
},
434434
{
435435
name: "kmem.limit_in_bytes",
436-
value: mem.Kernel,
436+
value: mem.Kernel, //nolint:staticcheck // SA1019: mem.Kernel is deprecated
437437
},
438438
{
439439
name: "kmem.tcp.limit_in_bytes",

0 commit comments

Comments
 (0)