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

protoc-gen-go: missing service definition in generated Go files #993

Closed
r3code opened this issue Nov 28, 2019 · 2 comments
Closed

protoc-gen-go: missing service definition in generated Go files #993

r3code opened this issue Nov 28, 2019 · 2 comments

Comments

@r3code
Copy link

r3code commented Nov 28, 2019

What version of protobuf and what language are you using?
Version: libprotoc 3.10.1

What did you do?
protoc -I. --go_out=plugins=paths=source_relative,grpc:gen_buggy\go\ *.proto

What did you expect to see?
Generated Go file contains *APIClient and *APIServer functions.
Or error reported of inconsistent or incompatible params.

What did you see instead?
Generated Go file does not contain *APIClient and *APIServer functions.
No errors generated.

Anything else we should know about your project / environment?
This one protoc -I. --go_out=plugins=grpc,paths=source_relative:gen\go *.proto generates go code correct.

Example proto-file:

syntax = "proto3";

package protocgengo.test.bug_source_related;

option go_package = "bug_source_related";

service AuthAPI {   
  rpc Login (LoginQuery) returns (LoginAnswer) {} 
}
             
message LoginQuery {
  string auth_token = 1; // required; 
} 

message LoginAnswer {  
  string error = 1;   
}
        
@r3code
Copy link
Author

r3code commented Nov 28, 2019

Relatred #544

@dsnet dsnet changed the title protoc-gen-go: missing service defifnition in generated Go files protoc-gen-go: missing service definition in generated Go files Dec 19, 2019
@dsnet
Copy link
Member

dsnet commented Mar 20, 2020

This project is no longer responsible for generating the service bindings as that behavior is moving over to the grpc-go project.

@dsnet dsnet closed this as completed Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants