Skip to content

Commit

Permalink
lib: pkgs: Dont query host version file.
Browse files Browse the repository at this point in the history
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 <jose.carlos.venegas.munoz@intel.com>
  • Loading branch information
jcvenegas committed Mar 4, 2019
1 parent 873ac75 commit 54c4a01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 54c4a01

Please sign in to comment.