You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protoc-gen-go needs to be told what import path to generate for packages that it can't guess.
The simplest option is to run protoc from a directory where the subdir holding the .proto file will be the import path (e.g. in $GOPATH/src).
The next best option is to pass one or more M parameters to specify the mapping of .proto file to import path. See protoc-gen-go/plugin/Makefile in this repo for an example of that.
When I import some of google's proto definitions the generated code imports a package that does not exist.
Example:
Generated code:
The import of
google_protobuf
fails.google_protobuf
package and adding it manually to myGOPATH
?The text was updated successfully, but these errors were encountered: