4 ms·
Go support is awesome, IMO. Personally I have favored Bazel over “go build” for a while, except for pure Go projects with no generated sources. Gazelle is wond
by klodolph 7y ago
Go support is awesome, IMO. Personally I have favored Bazel over “go build” for a while, except for pure Go projects with no generated sources.
Gazelle is wonderful and it doesn’t belong in Bazel core. Bazel is a build system for every language, and Gazelle is for a subset of Go developers. Since it’s not part of Bazel core, you can always replace it with something else.
- zapita 7y agoBut would you recommend using Bazel and Go without Gazelle or an equivalent third party?
- laurentlb 7y agoGazelle is a recommended tool, developed by the same people who make the Go rules. It's not a third party tool, it's part of the normal experience.
- klodolph 7y agoI recommend Gazelle for importing third-party Go dependencies but not for your own Go code. If you are using Bazel, just write the BUILD.bazel file yourself with the appropriate go_library / go_binary / go_test rules.