Skip to content

Commit 20727c6

Browse files
authored
Merge pull request #4598 from kolyshkin/go124
Add Go 1.24, drop Go 1.22
2 parents 0f88286 + d237bc4 commit 20727c6

File tree

5 files changed

+8
-40
lines changed

5 files changed

+8
-40
lines changed

.cirrus.yml

Lines changed: 4 additions & 4 deletions
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.23"
80+
GO_VER_PREFIX: "1.24."
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
@@ -117,10 +117,10 @@ task:
117117
[ $? -eq 0 ] # fail if yum failed
118118
119119
# Install Go.
120-
PREFIX="https://go.dev/dl/"
120+
URL_PREFIX="https://go.dev/dl/"
121121
# Find out the latest minor release URL.
122-
filename=$(curl -fsSL "${PREFIX}?mode=json&include=all" | jq -r --arg Ver "go$GO_VERSION." '. | map(select(.version | contains($Ver))) | first | .files[] | select(.os == "linux" and .arch == "amd64" and .kind == "archive") | .filename')
123-
curl -fsSL "$PREFIX$filename" | tar Cxz /usr/local
122+
filename=$(curl -fsSL "${URL_PREFIX}?mode=json&include=all" | jq -r --arg Ver "go$GO_VER_PREFIX" '. | map(select(.version | contains($Ver))) | first | .files[] | select(.os == "linux" and .arch == "amd64" and .kind == "archive") | .filename')
123+
curl -fsSL "$URL_PREFIX$filename" | tar Cxz /usr/local
124124
# install bats
125125
cd /tmp
126126
git clone https://github.com/bats-core/bats-core

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
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.22.x, 1.23.x]
27+
go-version: [1.23.x, 1.24.x]
2828
rootless: ["rootless", ""]
2929
race: ["-race", ""]
3030
criu: ["", "criu-dev"]

.github/workflows/validate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- release-*
99
pull_request:
1010
env:
11-
GO_VERSION: 1.23.x
11+
GO_VERSION: 1.24
1212
permissions:
1313
contents: read
1414

@@ -40,7 +40,7 @@ jobs:
4040
sudo apt -qy install libseccomp-dev
4141
- uses: golangci/golangci-lint-action@v6
4242
with:
43-
version: v1.62
43+
version: v1.64
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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
module github.com/opencontainers/runc
22

3-
go 1.22
4-
5-
// Suggest toolchain 1.22.4 due to a fix in golang for libcontainer/nsenter/.
6-
// For more info, see: #4233
7-
// Note that toolchain does not impose a requirement on other modules using runc.
8-
toolchain go1.22.4
3+
go 1.23.0
94

105
require (
116
github.com/checkpoint-restore/go-criu/v6 v6.3.0

libcontainer/system/rlimit_linux_go122.go

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)