ignite / cli

Ignite is a CLI tool and hub designed for constructing Proof of Stake Blockchains rooted in Cosmos-SDK
https://ignite.com
Other
1.25k stars 548 forks source link

FIX: Generating ts-client is broken #4305

Open vladimir-trifonov opened 2 months ago

vladimir-trifonov commented 2 months ago

Describe the bug Generating ts-client is broken.

I have such lines for dependencies:

import { Api } from "./rest";
import { QueryModuleAccountsRequest } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.9/proto/cosmos/auth/v1beta1/query";
import { Bech32PrefixResponse } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.9/proto/cosmos/auth/v1beta1/query";
import { AddressBytesToStringResponse } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.9/proto/cosmos/auth/v1beta1/query";
...

The paths are wrong, the ./rest.ts is missing among other issues.

To reproduce Steps to reproduce the behavior:

  1. ignite generate ts-client

What version are you using? Any version after v0.27 is broken.

🐹 ignite version Ignite CLI version: v28.5.1-dev Ignite CLI build date: 2024-08-05T12:50:47Z Ignite CLI source hash: 2a968e8684cae0a1d79ccb11f0db067a4605173e Ignite CLI config version: v1 Cosmos SDK version: v0.50.8 Your OS: darwin Your arch: arm64 Your go version: go version go1.22.6 darwin/arm64 Your uname -a: Darwin Vladimirs-MBP 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64 arm Darwin Your cwd: /Users/vladimirtrifonov/src/cli Is on Gitpod: false

ag-wnl commented 2 months ago

Facing same issue due to which client side generation fails, have you tried using prior versions to v0.27 and are they working?

salmad3 commented 2 months ago

Thanks for reporting this issue. The team is currently investigating and it seems related to recent rate limit changes on buf.build (https://github.com/ignite/cli/issues/4303), which are affecting typescript generation.

Pantani commented 2 months ago

we need to uncomment the test after we authenticate the buf into the ci

https://github.com/ignite/cli/pull/4322/files#diff-d67e5049a6cca2da4aa5c9b9082783f567040c945416ff81a65e37312f317a6dR16

julienrbrt commented 1 month ago

Yes, I had a call with @clockworkgr to fix this (following error after https://github.com/ignite/cli/issues/4259). He found the issue in the path resolving. A patch should be coming soon!

arthur404dev commented 3 days ago

Still having this issue, can't utilize the ts-client even after buf registry login and can't use any of the generated frontends also (be it react, or vue)