{"action":"created","issue":{"url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/18","repository_url":"https://api.github.com/repos/micro/protoc-gen-micro","labels_url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/18/comments","events_url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/18/events","html_url":"https://github.com/micro/protoc-gen-micro/issues/18","id":346841609,"node_id":"MDU6SXNzdWUzNDY4NDE2MDk=","number":18,"title":"Cann't generate grpc code in the *.pb.go file","user":{"login":"zuiaiqun","id":6336028,"node_id":"MDQ6VXNlcjYzMzYwMjg=","avatar_url":"https://avatars3.githubusercontent.com/u/6336028?v=4","gravatar_id":"","url":"https://api.github.com/users/zuiaiqun","html_url":"https://github.com/zuiaiqun","followers_url":"https://api.github.com/users/zuiaiqun/followers","following_url":"https://api.github.com/users/zuiaiqun/following{/other_user}","gists_url":"https://api.github.com/users/zuiaiqun/gists{/gist_id}","starred_url":"https://api.github.com/users/zuiaiqun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuiaiqun/subscriptions","organizations_url":"https://api.github.com/users/zuiaiqun/orgs","repos_url":"https://api.github.com/users/zuiaiqun/repos","events_url":"https://api.github.com/users/zuiaiqun/events{/privacy}","received_events_url":"https://api.github.com/users/zuiaiqun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-02T03:02:41Z","updated_at":"2018-08-04T06:40:18Z","closed_at":null,"author_association":"NONE","body":"I have followed the `greeter` example to generate the proto files. But I cann't see any grpc codes in the file.\r\nHere is whate I've done:\r\n* `protoc --proto_path=$CURRENTDIR/proto --micro_out=./src/share/pb --go_out=./src/share/pb $CURRENTDIR/proto/*.proto`\r\n\r\nThe output also has two files, one is the `greeter.micro.go`, the other is `greeter.pb.go`. However, the `greeter.pb.go` file doesn't have any codes relative to grpc.\r\nMy protoc version is `libprotoc 3.6.1`.\r\nI use `go install github.com/micro/protoc-gen-micro` to get the `protoc-gen-micro` binary, and use `go install `go install github.com/golang/protobuf/protoc-gen-go` to get the `protoc-gen-go` binary.\r\n\r\nBelow is a snippet of the code:\r\n`// Code generated by protoc-gen-go. DO NOT EDIT.\r\n// source: greeter.proto\r\n\r\npackage pb\r\n\r\nimport proto \"github.com/golang/protobuf/proto\"\r\nimport fmt \"fmt\"\r\nimport math \"math\"\r\n\r\n// Reference imports to suppress errors if they are not otherwise used.\r\nvar _ = proto.Marshal\r\nvar _ = fmt.Errorf\r\nvar _ = math.Inf\r\n\r\n// This is a compile-time assertion to ensure that this generated file\r\n// is compatible with the proto package it is being compiled against.\r\n// A compilation error at this line likely means your copy of the\r\n// proto package needs to be updated.\r\nconst _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package\r\n\r\ntype HelloRequest struct {\r\n    Name                 string   `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\r\n    XXX_NoUnkeyedLiteral struct{} `json:\"-\"`\r\n    XXX_unrecognized     []byte   `json:\"-\"`\r\n    XXX_sizecache        int32    `json:\"-\"`\r\n}\r\n\r\nfunc (m *HelloRequest) Reset()         { *m = HelloRequest{} }\r\nfunc (m *HelloRequest) String() string { return proto.CompactTextString(m) }\r\nfunc (*HelloRequest) ProtoMessage()    {}\r\nfunc (*HelloRequest) Descriptor() ([]byte, []int) {\r\n    return fileDescriptor_greeter_7ab6ac6608e3c1bc, []int{0}\r\n}\r\nfunc (m *HelloRequest) XXX_Unmarshal(b []byte) error {\r\n    return xxx_messageInfo_HelloRequest.Unmarshal(m, b)\r\n}\r\nfunc (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {\r\n    return xxx_messageInfo_HelloRequest.Marshal(b, m, deterministic)\r\n}\r\nfunc (dst *HelloRequest) XXX_Merge(src proto.Message) {\r\n    xxx_messageInfo_HelloRequest.Merge(dst, src)\r\n}\r\nfunc (m *HelloRequest) XXX_Size() int {\r\n    return xxx_messageInfo_HelloRequest.Size(m)\r\n}\r\nfunc (m *HelloRequest) XXX_DiscardUnknown() {\r\n    xxx_messageInfo_HelloRequest.DiscardUnknown(m)\r\n}\r\n\r\nvar xxx_messageInfo_HelloRequest proto.InternalMessageInfo\r\n\r\nfunc (m *HelloRequest) GetName() string {\r\n    if m != nil {\r\n        return m.Name\r\n    }\r\n    return \"\"\r\n}\r\n\r\ntype HelloResponse struct {\r\n    Greeting             string   `protobuf:\"bytes,2,opt,name=greeting,proto3\" json:\"greeting,omitempty\"`\r\n    XXX_NoUnkeyedLiteral struct{} `json:\"-\"`\r\n    XXX_unrecognized     []byte   `json:\"-\"`\r\n    XXX_sizecache        int32    `json:\"-\"`\r\n}\r\n`\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/comments/410428254","html_url":"https://github.com/micro/protoc-gen-micro/issues/18#issuecomment-410428254","issue_url":"https://api.github.com/repos/micro/protoc-gen-micro/issues/18","id":410428254,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDQyODI1NA==","user":{"login":"zuiaiqun","id":6336028,"node_id":"MDQ6VXNlcjYzMzYwMjg=","avatar_url":"https://avatars3.githubusercontent.com/u/6336028?v=4","gravatar_id":"","url":"https://api.github.com/users/zuiaiqun","html_url":"https://github.com/zuiaiqun","followers_url":"https://api.github.com/users/zuiaiqun/followers","following_url":"https://api.github.com/users/zuiaiqun/following{/other_user}","gists_url":"https://api.github.com/users/zuiaiqun/gists{/gist_id}","starred_url":"https://api.github.com/users/zuiaiqun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuiaiqun/subscriptions","organizations_url":"https://api.github.com/users/zuiaiqun/orgs","repos_url":"https://api.github.com/users/zuiaiqun/repos","events_url":"https://api.github.com/users/zuiaiqun/events{/privacy}","received_events_url":"https://api.github.com/users/zuiaiqun/received_events","type":"User","site_admin":false},"created_at":"2018-08-04T06:40:18Z","updated_at":"2018-08-04T06:40:18Z","author_association":"NONE","body":"Yes. The output also has two files, one is the greeter.micro.go, the other is greeter.pb.go."}}
{"actor":{"display_login":"zuiaiqun"}}