mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-27 20:18:57 +00:00
kernel: Make sure local versions.yaml file from runtime get precedence
Fixes: #431 Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
This commit is contained in:
parent
e7fb9c1ad0
commit
3771b04d6f
@ -35,6 +35,11 @@ get_from_kata_deps() {
|
|||||||
local branch="${2:-master}"
|
local branch="${2:-master}"
|
||||||
local runtime_repo="github.com/kata-containers/runtime"
|
local runtime_repo="github.com/kata-containers/runtime"
|
||||||
GOPATH=${GOPATH:-${HOME}/go}
|
GOPATH=${GOPATH:-${HOME}/go}
|
||||||
|
# We will not query the local versions.yaml file here to allow releases to
|
||||||
|
# always get the version from the committed tree. For our CI,
|
||||||
|
# .ci/install_kata_kernel.sh file in tests repository will pass the kernel
|
||||||
|
# version as an override to this function to allow testing of kernels before
|
||||||
|
# they land in tree.
|
||||||
versions_file="versions-${branch}.yaml"
|
versions_file="versions-${branch}.yaml"
|
||||||
if [ ! -e "${versions_file}" ]; then
|
if [ ! -e "${versions_file}" ]; then
|
||||||
yaml_url="https://raw.githubusercontent.com/kata-containers/runtime/${branch}/versions.yaml"
|
yaml_url="https://raw.githubusercontent.com/kata-containers/runtime/${branch}/versions.yaml"
|
||||||
|
Loading…
Reference in New Issue
Block a user