-
Notifications
You must be signed in to change notification settings - Fork 574
Open
Description
Context:
following the tutorial, generating openapi fails
Describe the Bug:
buf seems to not include cosmos/gogoproto dependencies when generating these files leading to "file does not exist" compile errors
Steps to Reproduce:
$ ignite generate openapi
ERROR
Cannot build app: failed to generate openapi spec /home/ammarelsabe/go/pkg/mod/github.com/strangelove-
ventures/poa@v0.50.7/proto, probably you need to exclude some proto files: error while running command go tool
github.com/bufbuild/buf/cmd/buf generate /home/ammarelsabe/go/pkg/mod/github.com/strangelove-
ventures/poa@v0.50.7/proto/strangelove_ventures/poa/v1/tx.proto --error-format=json --log-format=json --
template=/home/ammarelsabe/rivchain/proto/buf.gen.swagger.yaml --output=/tmp/gen-openapi-module-spec218047846:
{"path":"/home/ammarelsabe/go/pkg/mod/github.com/strangelove-
ventures/poa@v0.50.7/proto/strangelove_ventures/poa/v1/tx.proto","start_line":4,"start_column":8,"end_line":4,"end_c
olumn":8,"type":"COMPILE","message":"import \"cosmos/base/v1beta1/coin.proto\": file does not exist"}: exit status
100.
✘ Cannot build app:
failed to generate openapi spec /home/ammarelsabe/go/pkg/mod/github.com/strangelove-ventures/poa@v0.50.7/proto, probably you need to exclude some proto files: error while running command go tool github.com/bufbuild/buf/cmd/buf generate /home/ammarelsabe/go/pkg/mod/github.com/strangelove-ventures/poa@v0.50.7/proto/strangelove_ventures/poa/v1/tx.proto --error-format=json --log-format=json --template=/home/ammarelsabe/rivchain/proto/buf.gen.swagger.yaml --output=/tmp/gen-openapi-module-spec218047846: {"path":"/home/ammarelsabe/go/pkg/mod/github.com/strangelove-ventures/poa@v0.50.7/proto/strangelove_ventures/poa/v1/tx.proto","start_line":4,"start_column":8,"end_line":4,"end_column":8,"type":"COMPILE","message":"import \"cosmos/base/v1beta1/coin.proto\": file does not exist"}: exit status 100
Environment Details:
$ ignite version
Ignite CLI version: v29.6.1-dev
Ignite CLI build date: 2025-10-15T12:20:54Z
Ignite CLI source hash: d17ee311b5e7bd9e95e607cf7395a40b43b4361c
Ignite CLI config version: v1
Cosmos SDK version: v0.53.4
Buf.build version: 1.54.0
Your OS: linux
Your arch: amd64
Your go version: go version go1.25.1 linux/amd64
Your uname -a: Linux ammarelsabe 6.15.7-200.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 17 17:57:16 UTC 2025 x86_64 GNU/Linux
Your cwd: /home/ammarelsabe/rivchain
Notes:
poa's buf.yaml includes the dependencies it needs
the tutorial conveniently served the chain with --skip-proto which also skips the openapi generation
i dont understand why ignite is even trying to build the swagger of the poa module, much less understand why it is failing, but i need at least a workaround?
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
To Discuss