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

--proto_path error since 1.6.0 #110

Open
mrt181 opened this issue Oct 8, 2018 · 1 comment
Open

--proto_path error since 1.6.0 #110

mrt181 opened this issue Oct 8, 2018 · 1 comment

Comments

@mrt181
Copy link

mrt181 commented Oct 8, 2018

I updated today to 2.0.0 and since version 1.6.0 I get this error for this command

 java -jar polyglot.jar --proto_discovery_root=build/extracted-include-protos/main call --endpoint=wn000280:18181 --full_method='api.v1.DataService/ListInstruments' <<< '{"parent":"references/instruments"}'
C:\cygwin64\home\mrt181\sourcecode\api-service\build\extracted-include-protos\main\google\protobuf\struct.proto: Input is shadowed in the --proto_path by "C:/cygwin64/tmp/polyglot-well-known-types1930180195804578592/google/protobuf/struct.proto".  Either use the latter file as your input or reorder the --proto_path so that the former file's location comes first.

I can fix this by deleting this directory:
C:\cygwin64\home\mrt181\sourcecode\api-service\build\extracted-include-protos\main\google

because polyglot includes it in the polyglot-well-known-types. But that directory is regenerated by my build jobs.

So I tried to run this instead:

 java -jar polyglot.jar --proto_discovery_root=build/extracted-include-protos/main/api call --endpoint=wn000280:18181 --full_method='api.v1.DataService/ListInstruments' <<< '{"parent":"references/instruments"}'

to only use my protos and the well-known ones but this gives me this error:

api/trading/v1/type/instrument.proto: File not found.
trading/v1/response/list_instruments_response.proto: Import "api/trading/v1/type/instrument.proto" was not found or had errors.
trading/v1/response/list_instruments_response.proto:11:14: "Instrument" is not defined.

list_instruments_response.proto has this import

import "api/trading/v1/type/instrument.proto";

How can I exclude the usage of the well-known-types?
I pull them in myself because I need those

@mgolovatiy-atconsulting-ru

+1
Have the same error

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

2 participants