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

Update the bazel docs for bzlmod and gazelle integration #1256

Open
udf2457 opened this issue Feb 11, 2024 · 1 comment
Open

Update the bazel docs for bzlmod and gazelle integration #1256

udf2457 opened this issue Feb 11, 2024 · 1 comment

Comments

@udf2457
Copy link

udf2457 commented Feb 11, 2024

The doc page for bazel is nice, but it needs updating from two perspectives:

  1. WORKSPACE is now considered legacy, and bazel is now recommending bzlmod, i.e. MODULE.bazel. The docs should really be updated to reflect this.
  2. Most real-world projects use gazelle to automatically find files and create local BUILD files.

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 !

@drfloob
Copy link
Member

drfloob commented Feb 13, 2024

That is quite an old blog post, not official documentation per se. Further, gRPC core does not support bazel modules yet. This seems like the sort of thing we could publish a new blog post for eventually, but I'm not sure the libraries are ready for it (I don't think any project other than gRPC-core/C++ uses bazel at all). @udf2457 if you're interested in doing the research, we could consider publishing a new article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants