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:
Carlos Venegas
2021-06-29 15:51:25 +00:00
parent 0c5ded4bd7
commit 3533a5b61d
3 changed files with 13 additions and 15 deletions

View File

@@ -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"
}