dflemstr / rq

Record Query - A tool for doing record analysis and transformation
Apache License 2.0
2.28k stars 57 forks source link

Protobuf base directory behavior unclear #210

Open lucasbru opened 4 years ago

lucasbru commented 4 years ago

When I try to import the schemas whose base directory is the current directory, the schema path is dropped

rq protobuf add com/bla/admin.proto --base .
[INFO] [record_query::proto_index] Added proto file as "/home/lucas/.local/share/rq/proto/admin.proto"

instead, if the base is not the working directory, it works correctly:

rq protobuf add resources/com/bla/admin.proto --base resources
[INFO] [record_query::proto_index] Added proto file as "/home/lucas/.local/share/rq/proto/com/bla/admin.proto"