From 319e133c3cd6b5bd819bcf7b050c19462d518c06 Mon Sep 17 00:00:00 2001 From: Rodrigo Campos Date: Thu, 19 Sep 2024 20:55:24 +0200 Subject: [PATCH] go.mod: Use toolchain 1.22.4 Go since 1.21 allows to set a "toolchain" that specifies the minimum Go toolchain to use when working in runc. In contrast to the go line, toolchain does not impose a requirement on other modules[1][2]. As documented in the 1.2.0-rc.1 release notes, 1.22.4 is needed for the nsenter package. Let's suggest this with the toolchain version. [1]: https://go.dev/doc/toolchain [2]: https://go.dev/blog/toolchain Signed-off-by: Rodrigo Campos --- go.mod | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go.mod b/go.mod index b086e0e0b..9c9dc9f23 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,11 @@ module github.com/opencontainers/runc go 1.22 +// Suggest toolchain 1.22.4 due to a fix in golang for libcontainer/nsenter/. +// For more info, see: #4233 +// Note that toolchain does not impose a requirement on other modules using runc. +toolchain go1.22.4 + require ( github.com/checkpoint-restore/go-criu/v6 v6.3.0 github.com/cilium/ebpf v0.16.0