Skip to content

Commit 553a369

Browse files
committed
Fix reference to vendor.conf in scripts
Signed-off-by: Shengjing Zhu <[email protected]>
1 parent 089d218 commit 553a369

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

contrib/Dockerfile.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RUN apt-get update && apt-get install -y \
3232
libseccomp-dev \
3333
--no-install-recommends
3434

35-
COPY vendor.conf vendor.conf
35+
COPY go.mod go.mod
3636
COPY script/setup/install-runc install-runc
3737
ARG GOPROXY=direct
3838
ARG GO111MODULE=off

script/setup/install-cni

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
#
1818
# Builds and installs cni plugins to /opt/cni/bin,
1919
# and create basic cni config in /etc/cni/net.d.
20-
# The commit defined in vendor.conf
20+
# The commit defined in go.mod
2121
#
2222
set -eu -o pipefail
2323

24-
CNI_COMMIT=$(grep containernetworking/plugins "$GOPATH"/src/github.com/containerd/containerd/vendor.conf | awk '{print $2}')
24+
CNI_COMMIT=$(grep containernetworking/plugins "$GOPATH"/src/github.com/containerd/containerd/go.mod | awk '{print $2}')
2525
CNI_DIR=${DESTDIR:=''}/opt/cni
2626
CNI_CONFIG_DIR=${DESTDIR}/etc/cni/net.d
2727

28+
cd "$GOPATH"
2829
go get -d github.com/containernetworking/plugins/...
2930
cd "$GOPATH"/src/github.com/containernetworking/plugins
3031
git checkout $CNI_COMMIT

script/setup/install-runc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616

1717
#
1818
# Builds and installs runc to /usr/local/go/bin based off
19-
# the commit defined in vendor.conf
19+
# the commit defined in go.mod
2020
#
2121
set -eu -o pipefail
2222

2323
function install_runc() {
24-
RUNC_COMMIT=$(grep opencontainers/runc "$GOPATH"/src/github.com/containerd/containerd/vendor.conf | awk '{print $2}')
24+
RUNC_COMMIT=$(grep opencontainers/runc "$GOPATH"/src/github.com/containerd/containerd/go.mod | awk '{print $2}')
2525

26+
cd "$GOPATH"
2627
go get -d github.com/opencontainers/runc
2728
cd "$GOPATH"/src/github.com/opencontainers/runc
2829
git checkout $RUNC_COMMIT

0 commit comments

Comments
 (0)