mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-20 00:07:55 +00:00
Packaging: stop using GOPATH for yq.
Use the yq installed in the env. Needed to build kata from docker. The container builder has not an initial Go env. Signed-off-by: Carlos Venegas <jos.c.venegas.munoz@intel.com>
This commit is contained in:
@@ -34,13 +34,9 @@ install_yq() {
|
||||
|
||||
get_from_kata_deps() {
|
||||
local dependency="$1"
|
||||
GOPATH=${GOPATH:-${HOME}/go}
|
||||
versions_file="${this_script_dir}/../../../versions.yaml"
|
||||
|
||||
#make sure yq is installed
|
||||
install_yq >&2
|
||||
|
||||
result=$("${GOPATH}/bin/yq" read -X "$versions_file" "$dependency")
|
||||
result=$("yq" read -X "$versions_file" "$dependency")
|
||||
[ "$result" = "null" ] && result=""
|
||||
echo "$result"
|
||||
}
|
||||
|
Reference in New Issue
Block a user