-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Go get breaks with autogenerated code #331
Comments
@jdoliner thanks for the issue report. This likely means you have an outdated "M" mapping in your protoc invocation. Can you share how you are invoking protoc? Your protoc line should appear as something akin to:
|
@tmc, thanks for the quick response. That probably explains it here's our invocation:
Looks like the incorrect "M" mapping we're using is the one for annotations? What should we be using instead? |
@jdoliner - I think you just need to eliminate 'Mgoogle/api/annotations.proto=github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis/google/api,' -- please report back. |
@tmc seems to have done the trick :), many thanks. |
@jdoliner thanks! |
We're seeing an issue when users attempt to
go get
a library that containspb.go
files which were built with grpc-gateway enabled. The issue seems to be that the files will include the line:Which doesn't contain any buildable go src files. It looks like it used to contain some but it currently doesn't in master. This results in the error:
I can think of a couple ways to fix this:
package api
in it so thatgo get
will workSorry if I'm missing something obvious here and misusing the library.
The text was updated successfully, but these errors were encountered: