From 4141875ffdbae4302e841dd437e6ee61e1d0e30e Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Fri, 23 Feb 2024 10:45:48 -0300 Subject: [PATCH] ci/lib.sh: set GOPATH default value Scripts sourcing ci/lib.sh need to set $GOPATH otherwise it will fail. This ensure that GOPATH is set to ${HOME}/go unless it is already exported. Signed-off-by: Wainer dos Santos Moschetta --- ci/lib.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/lib.sh b/ci/lib.sh index d4e1b050b3..28add11b10 100644 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -5,6 +5,7 @@ set -o nounset +GOPATH=${GOPATH:-${HOME}/go} export kata_repo="github.com/kata-containers/kata-containers" export kata_repo_dir="$GOPATH/src/$kata_repo" export tests_repo="${tests_repo:-github.com/kata-containers/tests}"