From f3738beacafc820ea64a50ac63d54d3f2a7668a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 13 Jul 2023 12:40:59 +0200 Subject: [PATCH] tests: Use $HOME/go as fallback for $GOPATH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Considering that someone may want to run the tests locally, we shouldn't rely on having GITHUB_WORKSPACE exported, and fallback to $HOME/go if needed. Signed-off-by: Fabiano FidĂȘncio --- tests/common.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/common.bash b/tests/common.bash index 486bb49096..554c04427b 100644 --- a/tests/common.bash +++ b/tests/common.bash @@ -335,8 +335,10 @@ function check_containerd_config_for_kata() { } function ensure_yq() { - : "${GOPATH:=${GITHUB_WORKSPACE}}" + : "${GOPATH:=${GITHUB_WORKSPACE:-$HOME/go}}" export GOPATH export PATH="${GOPATH}/bin:${PATH}" INSTALL_IN_GOPATH=true "${repo_root_dir}/ci/install_yq.sh" } + +