bufbuild / buf

The best way of working with Protocol Buffers.

Home Page:https://buf.build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

protoc_path only accepts string, not array like other plugin paths

anuraaga opened this issue · comments

Currently, protoc_path only accepts a string

ProtocPath string

Other plugins accept path as an array to support passing arguments

Path []string

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.