try again to fix windows
2 files changed
tree: 04a7ba343cf6001eeb7a58c6f5b4384fdd25b6a6
  1. .bcr/
  2. .devcontainer/
  3. .github/
  4. e2e/
  5. protoc/
  6. .bazelignore
  7. .bazelrc
  8. .bazelversion
  9. .gitignore
  10. .pre-commit-config.yaml
  11. .prettierignore
  12. BUILD.bazel
  13. CONTRIBUTING.md
  14. LICENSE
  15. MODULE.bazel
  16. README.md
  17. renovate.json
  18. WORKSPACE.bazel
README.md

Bazel toolchain for pre-built protoc

protoc has always been distributed as pre-built binaries on https://github.com/protocolbuffers/protobuf/releases

Bazel 7 introduced --incompatible_enable_proto_toolchain_resolution to allow us fetch that binary rather than re-build it!

See https://github.com/bazelbuild/examples/blob/never_compile_protoc_again/proto/README.md

Why a separate Bazel module?

This belongs in rules_proto, see

Getting reviews from Googlers is hard so let's not wait for them.

Installation

Make sure your .bazelrc contains

# Introduced in Bazel 7.
common --incompatible_enable_proto_toolchain_resolution

Follow instructions from the release you wish to use: https://github.com/alexeagle/rules_protoc/releases