From 2b4520904cb6aa073a7029132e65db0d9f6dca1e Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 15 Dec 2020 15:58:46 +1100 Subject: [PATCH] agent/protocols: Remove some unneeded dependencies for protocol generation src/agent/protocols/hack/update-generated-proto.sh checks for the presence of protoc-gen-rust and ttrpc_rust_plugin, but it doesn't actually need them. Those tools are needed to generate Rust code from the gRPC proto files, but that's already handled in src/agent/protocols/build.rs using Cargo for dependency management. This script is only needed for the Go code, for which the other tools are sufficient. fixes #1198 Signed-off-by: David Gibson --- src/agent/protocols/hack/update-generated-proto.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/agent/protocols/hack/update-generated-proto.sh b/src/agent/protocols/hack/update-generated-proto.sh index c8118e80c7..7abe973c6c 100755 --- a/src/agent/protocols/hack/update-generated-proto.sh +++ b/src/agent/protocols/hack/update-generated-proto.sh @@ -80,12 +80,6 @@ fi; which protoc [ $? -eq 0 ] || die "Please install protoc from github.com/protocolbuffers/protobuf" -which protoc-gen-rust -[ $? -eq 0 ] || die "Please install protobuf-codegen from github.com/pingcap/grpc-rs" - -which ttrpc_rust_plugin -[ $? -eq 0 ] || die "Please install ttrpc_rust_plugin from https://github.com/containerd/ttrpc-rust" - which protoc-gen-gogottrpc [ $? -eq 0 ] || die "Please install protoc-gen-gogottrpc from https://github.com/containerd/ttrpc"