是版本问题吗?
(ftpman) hary@gardenia:~/tmp/grpc-restful$ goctl env check -v [goctl-env]: preparing to check env
[goctl-env]: looking up "protoc" [goctl-env]: "protoc" is installed
[goctl-env]: looking up "protoc-gen-go" [goctl-env]: "protoc-gen-go" is installed
[goctl-env]: looking up "protoc-gen-go-grpc" [goctl-env]: "protoc-gen-go-grpc" is installed
[goctl-env]: congratulations! your goctl environment is ready!
(ftpman) hary@gardenia:~/tmp/grpc-restful$ protoc --include_imports --proto_path=. --descriptor_set_out=sum.pb sum.proto google/protobuf/descriptor.proto: File not found. google/api/annotations.proto:20:1: Import "google/protobuf/descriptor.proto" was not found or had errors. google/api/annotations.proto:24:8: "google.protobuf.MethodOptions" is not defined. sum.proto:6:1: Import "google/api/annotations.proto" was not found or had errors.
直接clone下来, 按公众号里文章, 这里过不去。
#3 看下是不是一样的问题