@@ -30,25 +30,31 @@ Bazel starlark rules for building protocol buffers +/- gRPC :sparkles:.
3030
3131# Table of Contents
3232
33+ - [ ` rules_proto (v2) ` ] ( #rules_proto-v2 )
34+ - [ Table of Contents] ( #table-of-contents )
3335- [ Getting Started] ( #getting-started )
34- - [ Workspace Boilerplate] ( #workspace-boilerplate )
36+ - [ ` WORKSPACE ` Boilerplate] ( #workspace-boilerplate )
3537 - [ Gazelle Setup] ( #gazelle-setup )
3638 - [ Gazelle Configuration] ( #gazelle-configuration )
3739 - [ Build Directives] ( #build-directives )
38- - [ YAML Config File ] ( #yaml-configuration )
40+ - [ YAML Configuration ] ( #yaml-configuration )
3941 - [ Running Gazelle] ( #running-gazelle )
40- - [ Build Rules] ( #build-rules )
41- - [ proto_compile] ( #proto_compile )
42- - [ proto_plugin] ( #proto_plugin )
43- - [ proto_compiled_sources] ( #proto_compiled_sources )
44- - [ Deep dive on the mappings attribute] ( #the-output_mappings-attribute )
45- - [ Repository Rules] ( #repository-rules )
46- - [ proto_repository] ( #proto_repository )
47- - [ proto_gazelle] ( #proto_gazelle )
48- - [ Plugin Implementations] ( #plugin-implementations )
49- - [ Rule Implementations] ( #rule-implementations )
50- - [ Writing Custom Plugins & Rules] ( #writing-custom-plugins-and-rules )
51- - [ History of this repository] ( #history )
42+ - [ Build Rules] ( #build-rules )
43+ - [ proto\_ compile] ( #proto_compile )
44+ - [ proto\_ plugin] ( #proto_plugin )
45+ - [ proto\_ compiled\_ sources] ( #proto_compiled_sources )
46+ - [ proto\_ compile\_ assets] ( #proto_compile_assets )
47+ - [ The ` output_mappings ` attribute] ( #the-output_mappings-attribute )
48+ - [ Repository Rules] ( #repository-rules )
49+ - [ proto\_ repository] ( #proto_repository )
50+ - [ proto\_ gazelle] ( #proto_gazelle )
51+ - [ golden\_ filegroup] ( #golden_filegroup )
52+ - [ Plugin Implementations] ( #plugin-implementations )
53+ - [ Rule Implementations] ( #rule-implementations )
54+ - [ Writing Custom Plugins and Rules] ( #writing-custom-plugins-and-rules )
55+ - [ +/- of golang implementations] ( #--of-golang-implementations )
56+ - [ +/- of starlark implementations] ( #--of-starlark-implementations )
57+ - [ History] ( #history )
5258
5359# Getting Started
5460
@@ -390,7 +396,7 @@ potential conflicts with other possible gazelle extensions, using the name
390396The core of `stackb/rules_proto` contains two build rules :
391397
392398| Rule | Description |
393- |-----------------| --------------------------------------------------------- |
399+ | --------------- | ------------------------------------------------------- |
394400| `proto_compile` | Executes the `protoc` tool. |
395401| `proto_plugin` | Provides static `protoc` plugin-specific configuration. |
396402
@@ -590,7 +596,7 @@ proto_repository(
590596 ],
591597 build_file_generation = "clean",
592598 build_file_proto_mode = "file",
593- override_go_googleapis = True,
599+ reresolve_known_proto_imports = True,
594600 proto_language_config_file = "//example:config.yaml",
595601 strip_prefix = "googleapis-02710fa0ea5312d79d7fb986c9c9823fb41049a9",
596602 type = "zip",
@@ -615,7 +621,7 @@ Takeaways:
615621 external workspace.
616622- ` proto_language_config_file` is an optional label pointing to a valid
617623 ` config.yaml` file to configure this extension.
618- - ` override_go_googleapis ` is a boolean attribute that has special meaning for
624+ - ` reresolve_known_proto_imports ` is a boolean attribute that has special meaning for
619625 the googleapis repository. Due to the fact that the builtin gazelle "proto"
620626 extension has
621627 [hardcoded logic](https://github.com/bazelbuild/bazel-gazelle/blob/master/language/proto/known_proto_imports.go)
@@ -762,7 +768,7 @@ The plugin name is an opaque string, but by convention they are maven-esqe
762768artifact identifiers that follow a GitHub org/repo/plugin_name convention.
763769
764770| Plugin |
765- |------------------------------------------------------------------------------------------------------------------------ |
771+ | ---------------------------------------------------------------------------------------------------------------------- |
766772| [builtin:cpp](pkg/plugin/builtin/cpp_plugin.go) |
767773| [builtin:csharp](pkg/plugin/builtin/csharp_plugin.go) |
768774| [builtin:java](pkg/plugin/builtin/java_plugin.go) |
@@ -798,7 +804,7 @@ The rule name is an opaque string, but by convention they are maven-esqe
798804artifact identifiers that follow a GitHub org/repo/rule_name convention.
799805
800806| Plugin |
801- |--------------------------------------------------------------------------------------------------- |
807+ | ------------------------------------------------------------------------------------------------- |
802808| [stackb:rules_proto:grpc_cc_library](pkg/rule/rules_cc/grpc_cc_library.go) |
803809| [stackb:rules_proto:grpc_closure_js_library](pkg/rule/rules_closure/grpc_closure_js_library.go) |
804810| [stackb:rules_proto:grpc_java_library](pkg/rule/rules_java/grpc_java_library.go) |
0 commit comments