Closed tasdikrahman closed 4 years ago
Try this:
protoc --proto_path=$(SRC_DIR)/proto --go_out=$(SRC_DIR)/pkg/rpc/ --twirp_out=$(SRC_DIR)/pkg/rpc/ --ruby_out=$(SRC_DIR)/client-rb/lib/myapplication/rpc/ --twirp_ruby_out=$(SRC_DIR)/client-rb/lib/myapplication/rpc/ $(SRC_DIR)/proto/feature/feature.proto
Set your proto_path
to be the path where your protos are so protoc
knows where to find your files rather than cd'ing into the directory.
Greetings,
We are having a directory structure for the proto files for our service, something like this
The contents being
v2/service.proto
service.proto
feature/feature.proto
Now when I do
prototool lint --debug
on the root directory (./myapplication
dir), I will not get any error, but when I try generating the stubs out of the proto filesI get an error saying
the commands I am using to generate the stubs
One thing to notice here is that, when I change the import to not prefix
proto
in import, like belowv2/service.proto
service.proto
the changes of removing
proto
prefix andmake gen-proto
doesn't fail, and the stubs get generated successfully, but$ prototool lint
is failing.Would be great if someone could point where we are going wrong.