grpc.io
grpc.io copied to clipboard
Update the bazel docs for bzlmod and gazelle integration
trafficstars
The doc page for bazel is nice, but it needs updating from two perspectives:
WORKSPACEis now considered legacy, andbazelis now recommendingbzlmod, i.e.MODULE.bazel. The docs should really be updated to reflect this.- Most real-world projects use
gazelleto automatically find files and create localBUILDfiles.
I have been bashing my head against a wall trying to get bazel to work in conjunction with bzlmod and gazelle to compile some gRPC stubs into Go from some proto files. I have been unable to find an end-to-end example that uses both, most examples use WORKSPACE and the few that use bzlmod don't show how to integrate with gazelle !