Skip to content
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

objectivec-descriptor.proto incorrect import #84

Open
lolgear opened this issue Jun 2, 2016 · 0 comments
Open

objectivec-descriptor.proto incorrect import #84

lolgear opened this issue Jun 2, 2016 · 0 comments

Comments

@lolgear
Copy link

lolgear commented Jun 2, 2016

I solved my previous issue with options #83 ( with @E-B-Smith help, big thanks! ).
But, however, I want to know something.

( Bug of feature? )

In objectivec-descriptor.proto we have import statement:
import "google/protobuf/descriptor.proto";

In example we have another import statement.
import "objectivec-descriptor.proto";

For satisfying all conditions you need this compiler invocation:

protoc --plugin=/usr/local/bin/protoc-gen-objc --proto_path="path_to/protobuf-objc/src/compiler/" --proto_path="path_to/protobuf-objc/src/compiler/google/protobuf/" --proto_path='./' pony.proto --objc_out="./"

Or in descriptive version:

protoc   --plugin=/usr/local/bin/protoc-gen-objc
--proto_path="path_to/protobuf-objc/src/compiler/"
--proto_path="path_to/protobuf-objc/src/compiler/google/protobuf/"
--proto_path='./'
pony.proto 
--objc_out="./"

Maybe it is better to change google/protobuf/descriptor.proto to descriptor.proto?

Or it is much better to leave only one proto_path from protobuf ( top path )?

--proto_path="path_to/protobuf-objc/src/compiler/"

And all statements will be relative to this path.
google/protobuf/objectivec-descriptor.proto and google/protobuf/descriptor.proto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant