From 8ed2eb751f2b72ef55be0e234fa17561671a5416 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Sat, 31 Aug 2019 21:58:08 -0700 Subject: [PATCH] Update version scripts to read from go.mod --- scripts/version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/version.sh b/scripts/version.sh index 052c0fdbe2..9bfff5bd17 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -16,5 +16,5 @@ fi ARCH=$(go env GOARCH) SUFFIX="-${ARCH}" -VERSION_CONTAINERD=$(grep ^github.com/containerd/containerd $(dirname $0)/../vendor.conf | awk '{print $2}') -VERSION_CRICTL=$(grep ^github.com/kubernetes-sigs/cri-tools $(dirname $0)/../vendor.conf | awk '{print $2}') +VERSION_CONTAINERD=$(grep github.com/containerd/containerd $(dirname $0)/../go.mod | head -n1 | awk '{print $4}') +VERSION_CRICTL=$(grep github.com/kubernetes-sigs/cri-tools $(dirname $0)/../go.mod | head -n1 | awk '{print $4}')