Open sqqqrly opened 1 year ago
Apologies if the error is unclear. Since you used an absolute path (/root/csi.proto
), you must add an import path to the command line. File paths are not allowed to be absolute in Protobuf; they must instead be relative to some import path. When you specify a relative path (like the second example), the current directory is the assumed import path. But when you specify an absolute path, you must also tell it the import path, so it can compute the relative path for the file to compile. So adding -import_path /root
to the first example would make it happy.
import_path /root
Thanks a lot, but it should be import-path /root
.
Thanks again.
When I run this, I get an error:
However, this works. csi.proto is in my CWD: