From 678d5b0d4d6d6005f8181734468bf13ad4168841 Mon Sep 17 00:00:00 2001 From: Dan Kortschak <90160302+efd6@users.noreply.github.com> Date: Tue, 29 Nov 2022 11:26:31 +1030 Subject: [PATCH] scripts/build_docs: don't assume GOPATH is set (#33847) --- script/build_docs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/script/build_docs.sh b/script/build_docs.sh index 50a70bb112ff..ce65d9e1186a 100755 --- a/script/build_docs.sh +++ b/script/build_docs.sh @@ -18,6 +18,7 @@ else echo "$docs_dir already exists. Not cloning." fi +GOPATH=$(go env GOPATH) index_list="$(find ${GOPATH%%:*}/src/$path -name 'index.asciidoc' -maxdepth 1)" for index in $index_list do