Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Generating ts-client is broken #4305

Open
vladimir-trifonov opened this issue Aug 16, 2024 · 4 comments · May be fixed by #4347
Open

FIX: Generating ts-client is broken #4305

vladimir-trifonov opened this issue Aug 16, 2024 · 4 comments · May be fixed by #4347
Assignees
Labels
component:ts-client type:bug Something isn't working

Comments

@vladimir-trifonov
Copy link

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/[email protected]/proto/cosmos/auth/v1beta1/query";
import { Bech32PrefixResponse } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/[email protected]/proto/cosmos/auth/v1beta1/query";
import { AddressBytesToStringResponse } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/[email protected]/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: 2a968e8
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
Copy link

ag-wnl commented Aug 17, 2024

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

@salmad3
Copy link
Member

salmad3 commented Aug 23, 2024

Thanks for reporting this issue. The team is currently investigating and it seems related to recent rate limit changes on buf.build (#4303), which are affecting typescript generation.

@salmad3 salmad3 added type:bug Something isn't working component:ts-client labels Aug 23, 2024
@salmad3 salmad3 changed the title Generating ts-client is broken FIX: Generating ts-client is broken Aug 23, 2024
@Pantani
Copy link
Collaborator

Pantani commented Aug 28, 2024

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
Copy link
Member

Yes, I had a call with @clockworkgr to fix this (following error after #4259).
He found the issue in the path resolving. A patch should be coming soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:ts-client type:bug Something isn't working
Projects
Status: Doing
Development

Successfully merging a pull request may close this issue.

6 participants