From 1f6f0c7b9a54162ec3035051424eb3e08f97e1b4 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Thu, 11 Jan 2018 22:20:16 +0000 Subject: [PATCH] Pass PATH for containerd sudo make install. Signed-off-by: Lantao Liu --- hack/install-deps.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/install-deps.sh b/hack/install-deps.sh index 42cd5acc7..7fb1ba9ee 100755 --- a/hack/install-deps.sh +++ b/hack/install-deps.sh @@ -135,7 +135,9 @@ fi checkout_repo ${CONTAINERD_PKG} ${CONTAINERD_VERSION} ${CONTAINERD_REPO} cd ${GOPATH}/src/${CONTAINERD_PKG} make -${sudo} make install -e DESTDIR=${CONTAINERD_DIR} +# containerd make install requires `go` to work. Explicitly +# set PATH to make sure it can find `go` even with `sudo`. +${sudo} sh -c "PATH=${PATH} make install -e DESTDIR=${CONTAINERD_DIR}" #Install crictl checkout_repo ${CRITOOL_PKG} ${CRITOOL_VERSION}