mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-15 16:13:20 +00:00
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 <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
873ac754d4
commit
54c4a017f0
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user