Fix reference to vendor.conf in scripts

Signed-off-by: Shengjing Zhu <zhsj@debian.org>
This commit is contained in:
Shengjing Zhu
2020-11-21 23:13:55 +08:00
parent 089d2183bf
commit 553a369158
3 changed files with 7 additions and 5 deletions

View File

@@ -16,13 +16,14 @@
#
# Builds and installs runc to /usr/local/go/bin based off
# the commit defined in vendor.conf
# the commit defined in go.mod
#
set -eu -o pipefail
function install_runc() {
RUNC_COMMIT=$(grep opencontainers/runc "$GOPATH"/src/github.com/containerd/containerd/vendor.conf | awk '{print $2}')
RUNC_COMMIT=$(grep opencontainers/runc "$GOPATH"/src/github.com/containerd/containerd/go.mod | awk '{print $2}')
cd "$GOPATH"
go get -d github.com/opencontainers/runc
cd "$GOPATH"/src/github.com/opencontainers/runc
git checkout $RUNC_COMMIT