Skip to content

Commit 53160fb

Browse files
authored
Merge pull request containerd#10110 from AkihiroSuda/go-mod-1.22
go.mod: go 1.22
2 parents 2c7b992 + 1578288 commit 53160fb

File tree

9 files changed

+18
-11
lines changed

9 files changed

+18
-11
lines changed

.github/actions/install-go/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: "Reusable action to install Go, so there is one place to bump Go ve
33
inputs:
44
go-version:
55
required: true
6-
default: "1.21.9"
6+
default: "1.22.2"
77
description: "Go version to install"
88

99
runs:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
name: Release
1414

1515
env:
16-
GO_VERSION: "1.21.9"
16+
GO_VERSION: "1.22.2"
1717

1818
permissions: # added using https://github.com/step-security/secure-workflows
1919
contents: read

BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A codespace will open in a web-based version of Visual Studio Code. The [dev con
2525

2626
To build the `containerd` daemon, and the `ctr` simple test client, the following build system dependencies are required:
2727

28-
* Go 1.21.x or above
28+
* Go 1.22.x or above
2929
* Protoc 3.x compiler and headers (download at the [Google protobuf releases page](https://github.com/protocolbuffers/protobuf/releases))
3030
* Btrfs headers and libraries for your distribution. Note that building the btrfs driver can be disabled via the build tag `no_btrfs`, removing this dependency.
3131

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ EOF
104104
config.vm.provision "install-golang", type: "shell", run: "once" do |sh|
105105
sh.upload_path = "/tmp/vagrant-install-golang"
106106
sh.env = {
107-
'GO_VERSION': ENV['GO_VERSION'] || "1.21.9",
107+
'GO_VERSION': ENV['GO_VERSION'] || "1.22.2",
108108
}
109109
sh.inline = <<~SHELL
110110
#!/usr/bin/env bash

contrib/Dockerfile.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# docker run --privileged containerd-test
3030
# ------------------------------------------------------------------------------
3131

32-
ARG GOLANG_VERSION=1.21.9
32+
ARG GOLANG_VERSION=1.22.2
3333
ARG GOLANG_IMAGE=golang
3434

3535
FROM ${GOLANG_IMAGE}:${GOLANG_VERSION} AS golang

contrib/fuzz/oss_fuzz_build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ go run main.go $SRC/containerd/images
4343

4444
apt-get update && apt-get install -y wget
4545
cd $SRC
46-
wget --quiet https://go.dev/dl/go1.21.9.linux-amd64.tar.gz
46+
wget --quiet https://go.dev/dl/go1.22.2.linux-amd64.tar.gz
4747

4848
mkdir temp-go
4949
rm -rf /root/.go/*
50-
tar -C temp-go/ -xzf go1.21.9.linux-amd64.tar.gz
50+
tar -C temp-go/ -xzf go1.22.2.linux-amd64.tar.gz
5151
mv temp-go/go/* /root/.go/
5252
cd $SRC/containerd
5353

go.mod

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

3-
go 1.21
3+
go 1.22.0
44

55
require (
66
dario.cat/mergo v1.0.0

script/setup/install-runc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,18 @@ function install_runc() {
3434
: "${RUNC_REPO:=https://github.com/opencontainers/runc.git}"
3535

3636
TMPROOT=$(mktemp -d)
37+
# runc is incompatible with Go 1.22 on glibc-based distros
38+
# https://github.com/opencontainers/runc/issues/4233
39+
GO121DIR="${TMPROOT}"/go121
40+
mkdir -p "${GO121DIR}"
41+
GOBIN="${GO121DIR}" go install golang.org/dl/go1.21.9@latest
42+
GO121="${GO121DIR}"/go1.21.9
43+
$GO121 download
3744
git clone "${RUNC_REPO}" "${TMPROOT}"/runc
3845
pushd "${TMPROOT}"/runc
3946
git checkout "${RUNC_VERSION}"
40-
make BUILDTAGS='seccomp' runc
41-
$SUDO make install
47+
make GO=$GO121 BUILDTAGS='seccomp' runc
48+
$SUDO make GO=$GO121 install
4249
popd
4350
rm -fR "${TMPROOT}"
4451
}

script/setup/prepare_env_windows.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# lived test environment.
66
Set-MpPreference -DisableRealtimeMonitoring:$true
77

8-
$PACKAGES= @{ mingw = "10.2.0"; git = ""; golang = "1.21.9"; make = ""; nssm = "" }
8+
$PACKAGES= @{ mingw = "10.2.0"; git = ""; golang = "1.22.2"; make = ""; nssm = "" }
99

1010
Write-Host "Downloading chocolatey package"
1111
curl.exe -L "https://packages.chocolatey.org/chocolatey.0.10.15.nupkg" -o 'c:\choco.zip'

0 commit comments

Comments
 (0)