protoc_path only accepts string, not array like other plugin paths
anuraaga opened this issue · comments
Currently, protoc_path
only accepts a string
buf/private/buf/bufgen/bufgen.go
Line 198 in 84149b4
Other plugins accept path
as an array to support passing arguments
buf/private/buf/bufgen/bufgen.go
Line 194 in 84149b4
It would be more consistent if protoc_path
accepted the same format. Notably, I am interesting in setting my protoc_path
to
["go", "run", "github.com/wasilibs/go-protoc/cmd/protoc@f99d8d9"]
to allow it to be run directly without installation, similar to the examples of path
that accept an array.
I ended up taking a different approach, not using protoc
but building plugins like protoc-gen-python
https://github.com/wasilibs/go-protoc-gen-builtins/blob/main/example/buf.gen.yaml
So since my use case is gone, I'll go ahead and close this, but feel free to reopen if having consistency between those two fields could still be useful unrelated to that. Thanks for the great tool.