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 <rodrigoca@microsoft.com>
This commit is contained in:
Rodrigo Campos
2024-09-19 20:55:24 +02:00
parent 15904913c2
commit 319e133c3c
+5
View File
@@ -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