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
I noticed that if you try to start a service with a proto file that includes a dependency on something with package like go_package=github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor, it fails with:
2019/09/05 03:16:17 Failed to generate server formatting 20:19: invalid import path: "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor" (and 1 more errors)
This is because server.tmpl just naively uses the package declaration as the import statement, which results in invalid like above. It can be fixed by truncating the package declaration at the semicolon.
The text was updated successfully, but these errors were encountered:
I noticed that if you try to start a service with a proto file that includes a dependency on something with package like
go_package=github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor
, it fails with:This is because
server.tmpl
just naively uses the package declaration as the import statement, which results in invalid like above. It can be fixed by truncating the package declaration at the semicolon.The text was updated successfully, but these errors were encountered: