From 54c4a017f07c65ec10322a2b284bc43e038bd5d1 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Mon, 4 Mar 2019 08:41:27 -0600 Subject: [PATCH] lib: pkgs: Dont query host version file. We do releases based on kata branches lets get a fresh versions file as the one in the host may be not updated. Signed-off-by: Jose Carlos Venegas Munoz --- scripts/lib.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/lib.sh b/scripts/lib.sh index d86a2246f1..ba4b615978 100644 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -35,14 +35,13 @@ get_from_kata_deps() { local branch="${2:-master}" local runtime_repo="github.com/kata-containers/runtime" GOPATH=${GOPATH:-${HOME}/go} - versions_file="${GOPATH}/src/github.com/kata-containers/runtime/versions.yaml" + versions_file="versions-${branch}.yaml" if [ ! -e "${versions_file}" ]; then yaml_url="https://raw.githubusercontent.com/kata-containers/runtime/${branch}/versions.yaml" echo "versions file (${versions_file}) does not exist" >&2 echo "Download from ${yaml_url}" >&2 #make sure yq is installed install_yq >&2 - versions_file="versions_${branch}.yaml" curl --silent -o "${versions_file}" "$yaml_url" fi result=$("${GOPATH}/bin/yq" read "$versions_file" "$dependency")