-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Example of working with Bazel #2140
Comments
There's no documentation on how to get started with this using bazel. I have a bazel setup + gazelle and I'm still getting errors while building a simple example. I'll post the work that I'm doing in order to have something submitted to this codebase. |
Sorry for the radio silence here, you're right that the bazel documentation is definitely lacking. I'm not personally very experience with its use so I would appreciate any contributions that could help newcomers use our bazel tooling. |
I just created a dummy repository that uses bazel to import grpc-gateway and generate the openapiv2 documentation from a proto file: https://github.com/pbsf/protoc-gen-openapi-bazel-example. I hope that helps. The protobuffer, go and gazelle versions are important, so are the commands order on the WORKSPACE. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
📚 Documentation
Hello. Where can I find an example of how to use the library with Bazel.
I tried the examples from
examples/internal
, but didn't understand how to generate Go and Swagger files. In the example, these files are already there, when I try to collect them from myself, I just have the Go files collected in the Bazel cache.Is there an example of an echo server with automatic generation of these files?
How to use ' grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ' together with Bazel?
I get the following error:
The text was updated successfully, but these errors were encountered: