You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our Gazelle runs in one workspace are slow. It looks like the slow down comes from generated code from proto files in Go.
The output I see is:
gazelle: finding module path for import github.com/org/repo/some/package/with/proto/foo/v1: go: -d flag is deprecated. -d=true is a no-op
go: downloading github.com/org/repo/ v1.2.3
go: downloading github.com/org/repo/some/package v4.5.6
go: module github.com/org/repo/some/package@upgrade found (v4.5.6), but does not contain package github.com/org/repo/some/package/with/proto/foo/v1
We have the following directives in the root BUILD.bazel file:
This is because the proto files we process/build with our own macro. The macro sets up proto_library, go_proto_library (regular and second one with @com_connectrpc_connect//cmd/protoc-gen-connect-go:protoc-gen-connect-gogo_proto_compiler plugin), ts_proto_library and buf_lint_test.
We maintain the BUILD.bazel files for proto files manually.
We also (have to) maintain the dependencies to generated Go/TS code manually like this:
I am looking for some recommendations/guidance on improving this setup.
Whenever Gazelle does the finding module path for import it takes a long time. This is unnecessary. Can I instruct Gazelle to stop searching for this prefix?
I would like to find a way to auto-generate the proto BUILD files as well as the Go dependencies. I think a convention should work. Is there any doc/guidance on setting this up? Do I need to write my own Gazelle extension for this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Our Gazelle runs in one workspace are slow. It looks like the slow down comes from generated code from proto files in Go.
The output I see is:
We have the following directives in the root
BUILD.bazelfile:This is because the proto files we process/build with our own macro. The macro sets up
proto_library,go_proto_library(regular and second one with@com_connectrpc_connect//cmd/protoc-gen-connect-go:protoc-gen-connect-gogo_proto_compilerplugin),ts_proto_libraryandbuf_lint_test.We maintain the
BUILD.bazelfiles for proto files manually.We also (have to) maintain the dependencies to generated Go/TS code manually like this:
I am looking for some recommendations/guidance on improving this setup.
Whenever Gazelle does the
finding module path for importit takes a long time. This is unnecessary. Can I instruct Gazelle to stop searching for this prefix?I would like to find a way to auto-generate the proto
BUILDfiles as well as the Go dependencies. I think a convention should work. Is there any doc/guidance on setting this up? Do I need to write my own Gazelle extension for this?Beta Was this translation helpful? Give feedback.
All reactions