If I use a raw Protobuf binary (the one used below is not exactly the same as the buf uploaded version, but both contains sf/substreams/rpc as a "path"):
$ rm -rf gen
$ buf generate "https://github.com/streamingfast/substreams/raw/develop/pb/system/system.pb#format=bin" --exclude-path="sf/substreams/rpc"
$ file gen/github.com/streamingfast/substreams/pb/sf/substreams/rpc
gen/github.com/streamingfast/substreams/pb/sf/substreams/rpc: cannot open `gen/github.com/streamingfast/substreams/pb/sf/substreams/rpc' (No such file or directory)
I would have though that --exclude-path would work even with bug Schema registry packages.
Using
buf.gen.yaml
:If I do:
Protos under
sf/substreams/rpc
(https://buf.build/streamingfast/substreams/tree/main:sf/substreams/rpc/v2) path are still generated.If I use a raw Protobuf binary (the one used below is not exactly the same as the buf uploaded version, but both contains
sf/substreams/rpc
as a "path"):I would have though that
--exclude-path
would work even with bug Schema registry packages.