Skip to content

Commit

Permalink
Pass PATH for containerd sudo make install.
Browse files Browse the repository at this point in the history
Signed-off-by: Lantao Liu <lantaol@google.com>
  • Loading branch information
Random-Liu committed Jan 11, 2018
1 parent cd255e6 commit 1f6f0c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 1f6f0c7

Please sign in to comment.