Skip to content

Commit 0377d50

Browse files
authored
Merge pull request #4360 from kolyshkin/go123
Add Go 1.23, drop 1.21
2 parents 2ee5564 + 606257c commit 0377d50

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ task:
7777
env:
7878
HOME: /root
7979
CIRRUS_WORKING_DIR: /home/runc
80-
GO_VERSION: "1.21"
80+
GO_VERSION: "1.22"
8181
BATS_VERSION: "v1.9.0"
8282
RPMS: gcc git iptables jq glibc-static libseccomp-devel make criu fuse-sshfs container-selinux
8383
# yamllint disable rule:key-duplicates

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os: [ubuntu-20.04, ubuntu-24.04, actuated-arm64-6cpu-8gb]
27-
go-version: [1.21.x, 1.22.x]
27+
go-version: [1.22.x, 1.23.x]
2828
rootless: ["rootless", ""]
2929
race: ["-race", ""]
3030
criu: ["", "criu-dev"]
@@ -33,7 +33,7 @@ jobs:
3333
# Disable most of criu-dev jobs, as they are expensive
3434
# (need to compile criu) and don't add much value/coverage.
3535
- criu: criu-dev
36-
go-version: 1.21.x
36+
go-version: 1.22.x
3737
- criu: criu-dev
3838
rootless: rootless
3939
- criu: criu-dev
@@ -45,12 +45,12 @@ jobs:
4545
- dmz: runc_nodmz
4646
os: ubuntu-20.04
4747
- dmz: runc_nodmz
48-
go-version: 1.21.x
48+
go-version: 1.22.x
4949
- dmz: runc_nodmz
5050
rootless: rootless
5151
- dmz: runc_nodmz
5252
race: -race
53-
- go-version: 1.21.x
53+
- go-version: 1.22.x
5454
os: actuated-arm64-6cpu-8gb
5555
- race: "-race"
5656
os: actuated-arm64-6cpu-8gb

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
sudo apt -qy install libseccomp-dev
4141
- uses: golangci/golangci-lint-action@v6
4242
with:
43-
version: v1.59
43+
version: v1.60
4444
# Extra linters, only checking new code from a pull request.
4545
- name: lint-extra
4646
if: github.event_name == 'pull_request'

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/opencontainers/runc
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/checkpoint-restore/go-criu/v6 v6.3.0

libcontainer/cgroups/fs/blkio_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package fs
22

33
import (
4-
"fmt"
54
"strconv"
65
"testing"
76

@@ -478,7 +477,7 @@ func TestBlkioStatsNoFilesBFQDebug(t *testing.T) {
478477
actualStats := *cgroups.NewStats()
479478
err := cpuset.GetStats(path, &actualStats)
480479
if err != nil {
481-
t.Errorf(fmt.Sprintf("test case '%s' failed unexpectedly: %s", testCase.desc, err))
480+
t.Errorf("%s: want no error, got: %+v", testCase.desc, err)
482481
}
483482
}
484483
}
@@ -592,7 +591,7 @@ func TestBlkioStatsNoFilesCFQ(t *testing.T) {
592591
actualStats := *cgroups.NewStats()
593592
err := cpuset.GetStats(path, &actualStats)
594593
if err != nil {
595-
t.Errorf(fmt.Sprintf("test case '%s' failed unexpectedly: %s", testCase.desc, err))
594+
t.Errorf("%s: want no error, got %+v", testCase.desc, err)
596595
}
597596
}
598597
}

libcontainer/configs/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ exit 0
202202
})
203203

204204
if err := cmdHook.Run(state); err != nil {
205-
t.Errorf(fmt.Sprintf("Expected error to not occur but it was %+v", err))
205+
t.Errorf("Want no error, got: %+v", err)
206206
}
207207
}
208208

0 commit comments

Comments
 (0)