protocol: force GOPATH to be set

Currently, if GOPATH is not set, errors will raise since protoc is using
GOPATH to find packages.

Signed-off-by: Beraldo Leal <bleal@redhat.com>
This commit is contained in:
Beraldo Leal 2023-09-01 12:29:18 -04:00
parent 68156d77ac
commit 8db84c1bd2

View File

@ -89,6 +89,8 @@ which protoc
which protoc-gen-gogottrpc
[ $? -eq 0 ] || die "Please install protoc-gen-gogottrpc from https://github.com/containerd/ttrpc"
[[ -n "$GOPATH" ]] || die "GOPATH is not set. Please set it."
# do generate work
target=$1