Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect the proto files for containerd grpc client on SUSE like systems #626

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions open-vm-tools/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -726,10 +726,16 @@ AC_DEFUN([AC_VMW_CONTAINERINFO_MSG],[
#
# proto files needed by containerd grpc client.
#
shared_prefix=/usr/share/gocode/src/github.com
for d in /usr/share/gocode/src /usr/share/go/1.*/contrib/src; do
if test -d "$d"/github.com; then
src_prefix="$d"
break
fi
done
shared_prefix=$src_prefix/github.com
AC_SUBST(TYPES_DIR, github.com/containerd/containerd/api/types)
AC_SUBST(TASKS_PROTOPATH, $shared_prefix/containerd/containerd/api/services/tasks/v1)
AC_SUBST(DEP_PROTOPATH, /usr/share/gocode/src)
AC_SUBST(DEP_PROTOPATH, $src_prefix)
AC_SUBST(CONTAINERD_PROTOPATH, $shared_prefix/containerd/containerd/api/services/containers/v1)
AC_SUBST(GOGO_PROTOPATH, $shared_prefix/gogo/protobuf)
AC_CHECK_FILE([${CONTAINERD_PROTOPATH}/containers.proto],
Expand Down