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

Proposal: Update truss to generate .pb.go files even when gRPC service is not defined. #242

Closed
7 tasks done
adamryman opened this issue Nov 3, 2017 · 1 comment
Closed
7 tasks done

Comments

@adamryman
Copy link
Member

adamryman commented Nov 3, 2017

If I have a .proto file that contains messages that I would like to use in multiple services:

$ cat shared.proto
syntax = "proto3";

package shared;

message SharedRequest {
  string In = 1;
}

And if truss is run on this file, I propose that truss generates a corresponding .pb.go file.

In the case of shared.proto the generated shared.pb.go would look like this.

Currently, truss panics because it cannot find the service name. (This used to have a nice error, guess this needs to have a test as well)

$ truss shared.proto
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x64568f]

To implement:

This is a step to fix #241

@adamryman
Copy link
Member Author

Fixed by #246.

Thanks again @eriktate and welcome to being a contributor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant