lib: versions: use branch variable

If branch is provided not use master.

When buiding packages the master repository is used
this is bad for stable releases. Use the BRANCH variable
exported in releases.

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz 2019-04-17 22:52:09 -05:00
parent 65e55a8b2c
commit 5b1ddd0b37

View File

@ -32,7 +32,8 @@ install_yq() {
get_from_kata_deps() { get_from_kata_deps() {
local dependency="$1" local dependency="$1"
local branch="${2:-master}" BRANCH=${BRANCH:-master}
local branch="${2:-${BRANCH}}"
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 # We will not query the local versions.yaml file here to allow releases to