-
Notifications
You must be signed in to change notification settings - Fork 552
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
feat: remove protoc
pkg and also nodetime helpers ts-proto
and sta
#4090
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we provide discovered modules' proto files into code generation process?
is almost the same thing as the |
Tried testing off this branch: Chain scaffolds ok.. On
Answering No:
Answering Yes:
Answering Yes:
Answering No:
Guessing we need to explicitly supply the proto dir? or the default is not picked up correctly in |
Oh, I got it. It's a bug from another PR. I will fix it. Can you test using the |
not really...the whole idea is to see if the |
still unable to test this properly to check correctness of ts-client output |
I was just downloading.... the nearly 1gb main branch here. This PR is great! |
# Conflicts: # ignite/pkg/cosmosbuf/buf.go # ignite/pkg/cosmosgen/generate_go.go # ignite/pkg/cosmosgen/generate_openapi.go
8be7c15
to
aa62b83
Compare
This PR also speeds up the scaffold and sever commands and the CI test |
…ta` (#4090) * remove protoc * add changelog * run go mod tidy * remove unused proto folder handling * add ts-client tests * remove unused methods * use import includes instead manual * use buf dep instead buf mod * change buf mod update to comand to buf dep update * improve code readbility * bump buf.build * bump buf into the go.mod * bump protobuf pkgs for buf * check if the folder has proto before update buf dependencies --------- Co-authored-by: Pantani <Pantani>
…ta` (#4090) * remove protoc * add changelog * run go mod tidy * remove unused proto folder handling * add ts-client tests * remove unused methods * use import includes instead manual * use buf dep instead buf mod * change buf mod update to comand to buf dep update * improve code readbility * bump buf.build * bump buf into the go.mod * bump protobuf pkgs for buf * check if the folder has proto before update buf dependencies --------- Co-authored-by: Pantani <Pantani> (cherry picked from commit 8e0937d) # Conflicts: # go.mod # go.sum # ignite/internal/plugin/testdata/execute_fail/go.mod # ignite/internal/plugin/testdata/execute_ok/go.mod # ignite/internal/tools/gen-config-doc/go.mod # ignite/internal/tools/gen-config-doc/go.sum # ignite/internal/tools/gen-mig-diffs/go.mod # ignite/internal/tools/gen-mig-diffs/go.sum # ignite/pkg/cosmosbuf/buf.go # ignite/pkg/cosmosgen/generate_go.go # ignite/pkg/cosmosgen/generate_openapi.go # ignite/pkg/cosmosgen/generate_typescript.go # ignite/pkg/nodetime/nodetime.go # ignite/pkg/nodetime/programs/sta/sta.go # ignite/pkg/nodetime/programs/ts-proto/tsproto.go # ignite/pkg/protoc/protoc.go # ignite/templates/app/files/go.mod.plush # ignite/templates/app/files/proto/buf.lock # integration/doctor/testdata/missing-tools.go.txt # integration/plugin/testdata/example-plugin/go.mod
…ta` (backport #4090) (#4224) * feat: remove `protoc` pkg and also nodetime helpers `ts-proto` and `sta` (#4090) * remove protoc * add changelog * run go mod tidy * remove unused proto folder handling * add ts-client tests * remove unused methods * use import includes instead manual * use buf dep instead buf mod * change buf mod update to comand to buf dep update * improve code readbility * bump buf.build * bump buf into the go.mod * bump protobuf pkgs for buf * check if the folder has proto before update buf dependencies --------- Co-authored-by: Pantani <Pantani> (cherry picked from commit 8e0937d) # Conflicts: # go.mod # go.sum # ignite/internal/plugin/testdata/execute_fail/go.mod # ignite/internal/plugin/testdata/execute_ok/go.mod # ignite/internal/tools/gen-config-doc/go.mod # ignite/internal/tools/gen-config-doc/go.sum # ignite/internal/tools/gen-mig-diffs/go.mod # ignite/internal/tools/gen-mig-diffs/go.sum # ignite/pkg/cosmosbuf/buf.go # ignite/pkg/cosmosgen/generate_go.go # ignite/pkg/cosmosgen/generate_openapi.go # ignite/pkg/cosmosgen/generate_typescript.go # ignite/pkg/nodetime/nodetime.go # ignite/pkg/nodetime/programs/sta/sta.go # ignite/pkg/nodetime/programs/ts-proto/tsproto.go # ignite/pkg/protoc/protoc.go # ignite/templates/app/files/go.mod.plush # ignite/templates/app/files/proto/buf.lock # integration/doctor/testdata/missing-tools.go.txt # integration/plugin/testdata/example-plugin/go.mod * resolve conflicts * fix changelog * remove unused files * fix TestPluginExecute * fix tests for ts generation * rollback go version from tests * fix text namespace version for ts client generation --------- Co-authored-by: Danilo Pantani <[email protected]> Co-authored-by: Julien Robert <[email protected]>
Description
stop using the
protoc
with the node plugins so we can remove the node time binary. This PR's makes all ts generation using thebuf generate command
.Changes
buf mode update
tobuf dep update
;protoc
andnodetime
;buf.lock
dependency digest;How to test
check the
ts-client
folder into the chain