Skip to content

Commit

Permalink
Set cfg = exec on plugins label list template
Browse files Browse the repository at this point in the history
  • Loading branch information
aaliddell committed Jan 9, 2024
1 parent 77881e1 commit 31ed478
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/custom_plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ short, the basic idea is:
default = [
Label("//<LABEL OF YOUR PLUGIN>"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/c/c_proto_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ c_proto_compile = rule(
default = [
Label("//:proto_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/cpp/cpp_grpc_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ cpp_grpc_compile = rule(
Label("//:proto_plugin"),
Label("//:grpc_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/cpp/cpp_proto_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ cpp_proto_compile = rule(
default = [
Label("//:proto_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/doc/doc_docbook_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ doc_docbook_compile = rule(
default = [
Label("//:docbook_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/doc/doc_html_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ doc_html_compile = rule(
default = [
Label("//:html_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/doc/doc_json_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ doc_json_compile = rule(
default = [
Label("//:json_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/doc/doc_markdown_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ doc_markdown_compile = rule(
default = [
Label("//:markdown_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/go/go_grpc_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ go_grpc_compile = rule(
Label("//:proto_plugin"),
Label("//:grpc_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/go/go_proto_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ go_proto_compile = rule(
default = [
Label("//:proto_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/grpc_gateway/gateway_grpc_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ gateway_grpc_compile = rule(
Label("@rules_proto_grpc_go//:grpc_plugin"),
Label("@rules_proto_grpc_go//:proto_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/grpc_gateway/gateway_openapiv2_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ gateway_openapiv2_compile = rule(
default = [
Label("//:openapiv2_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/objc/objc_grpc_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ objc_grpc_compile = rule(
Label("//:proto_plugin"),
Label("//:grpc_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/objc/objc_proto_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ objc_proto_compile = rule(
default = [
Label("//:proto_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/python/python_grpc_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ python_grpc_compile = rule(
Label("//:proto_plugin"),
Label("//:grpc_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/python/python_grpclib_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ python_grpclib_compile = rule(
Label("//:proto_plugin"),
Label("//:grpclib_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions modules/python/python_proto_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ python_proto_compile = rule(
default = [
Label("//:proto_plugin"),
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down
1 change: 1 addition & 0 deletions tools/rulegen/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ var compileRuleTemplate = mustTemplate(`load(
default = [{{ range .Rule.Plugins }}
Label("{{ . }}"),{{ end }}
],
cfg = "exec",
doc = "List of protoc plugins to apply",
),
),
Expand Down

0 comments on commit 31ed478

Please sign in to comment.