Open bryanchriswhite opened 7 months ago
Try renaming any .proto files which are currently named after their respective modules; e.g., proto/poktroll/session/session.proto
, proto/poktroll/service/service.proto
, etc.
See:
We can also probably remove these files from the [buf.gen.pulsar.yaml]() plugins.opt field:
plugins:
- name: go-pulsar
out: ./api
- opt: paths=source_relative,Mpoktroll/shared/service.proto=github.com/pokt-network/poktroll/api/poktroll/shared,Mpoktroll/shared/supplier.proto=github.com/pokt-network/poktroll/api/poktroll/shared,Mpoktroll/supplier/supplier.proto=github.com/pokt-network/poktroll/api/poktroll/supplier,Mpoktroll/session/session.proto=github.com/pokt-network/poktroll/api/poktroll/session
+ opt: paths=source_relative
Try renaming any .proto files which are currently named after their respective modules; e.g.,
proto/poktroll/session/session.proto
,proto/poktroll/service/service.proto
, etc.We can also probably remove these files from the buf.gen.pulsar.yaml plugins.opt field:
No dice. :game_die: The proto_fix_self_import
target seems to still be necessary despite these changes (see: #749). :disappointed:
Objective
Remove
proto_fix_self_import
make target workaround.Origin Document
api/poktroll/**/*.go
(generated) files in version control. Otherwise, theignite
CLI becomes unusable as it requriesgo mod tidy
to succeed for all subcommands, which is not possible without these files as they are imported by each respective module'smodule.go
andautocli.go
files..proto
files import protobuf types from other.proto
files, it seems that we MUST add a corresponding option in theplugins.opt
field inbuf.gen.pulsar.yaml
to mitigate the following error during generation:*.pulsar.go
code immediately after generation (i.e. tryignite generate proto-go && ignite chain build --skip-proto
):Goals
cosmos-proto
'scosmos-proto
(or other appropriate) repo.Deliverables
Non-goals / Non-deliverables
General deliverables
Creator: @bryanchriswhite Co-Owners: @red-0ne