-
Notifications
You must be signed in to change notification settings - Fork 807
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
equal plugin generates wrong import line #283
Comments
Ok that looks like a bug. Well done. |
I can't seem to reproduce. Maybe it has something to do with your protoc command, like maybe using import_prefix? |
If you clone our repo, you can do
It's indeed possible that it's something about our environment, but I can't think what it could be. If you don't get to it, I'll try a simpler repro. |
It would really help to get a simpler example. |
It turns out that we're forced to fixup standard package imports with hacks because of the @tamird, whom I believe you know, tells me that this is a known... idiosyncrasy with protoc. Sorry for the noise. |
Sounds like golang/protobuf#181. |
No worries, this is a really hard issue. |
I've added the
option (gogoproto.equal) = true;
line to the following proto:https://github.com/cockroachdb/cockroach/blob/befea82/pkg/roachpb/metadata.proto#L69
It seems to generate the following bogus import line:
Not sure where it got the "cockroachdb/bytes" from; that package does not exist. The
bytes
types in the proto I've annotated are usinggogoproto.casttype
, which maybe is related.The text was updated successfully, but these errors were encountered: