-
Notifications
You must be signed in to change notification settings - Fork 1.6k
protoc-gen-go: regression in handling of source_relative parameter #1076
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
Comments
I should add, I have this in option go_package = "github.com/myorg/myproject/pb"; |
It is a surprise to me that \cc @neild to decide whether we should forward port this "feature" to the new implementation. |
I don't understand how https://github.com/golang/protobuf/blob/master/protoc-gen-go/generator/generator.go#L488 |
Also, so far as I can tell, the Ruby code generator has no support for a |
Ah, doing some more experiments, with the old generator I get the same results if I remove I believe it took a large amount of tinkering to get the outputs the way I wanted so I probably stopped once I got it working. |
I think this should be closed, tightening argument parsing so things that had no effect, and should not have been allowed, are now not allowed, doesn't seem like a regression. My mistake was in assuming that this was doing something. |
I am attempting to generate a Go pb.go file. This is the command I am running to generate it with the old binary:
I run that command from
$GOPATH/src/github.com/myorg/myproject
. It writes a file to$GOPATH/src/github.com/myorg/myproject/pb/api.pb.go
.With the new
cmd/protoc-gen-go
, I get the following error:Confusingly, I can see references to
source_relative
in the source code, but the references in the README of the new project have disappeared.I can get it to generate a file by changing the command to read:
However, this writes api.pb.go to
$GOPATH/src/api.pb.go
, not$GOPATH/src/github.com/myorg/myproject/pb/api.pb.go
as I expect.The text was updated successfully, but these errors were encountered: