We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7feb1f3 commit fef78c1Copy full SHA for fef78c1
script/setup/install-runc
@@ -34,11 +34,18 @@ function install_runc() {
34
: "${RUNC_REPO:=https://github.com/opencontainers/runc.git}"
35
36
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
44
git clone "${RUNC_REPO}" "${TMPROOT}"/runc
45
pushd "${TMPROOT}"/runc
46
git checkout "${RUNC_VERSION}"
- make BUILDTAGS='seccomp' runc
- $SUDO make install
47
+ make GO=$GO121 BUILDTAGS='seccomp' runc
48
+ $SUDO make GO=$GO121 install
49
popd
50
rm -fR "${TMPROOT}"
51
}
0 commit comments