Skip to content

Commit 31ed478

Browse files
committed
Set cfg = exec on plugins label list template
1 parent 77881e1 commit 31ed478

18 files changed

+18
-0
lines changed

docs/custom_plugins.rst

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ short, the basic idea is:
6767
default = [
6868
Label("//<LABEL OF YOUR PLUGIN>"),
6969
],
70+
cfg = "exec",
7071
doc = "List of protoc plugins to apply",
7172
),
7273
),

modules/c/c_proto_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ c_proto_compile = rule(
1717
default = [
1818
Label("//:proto_plugin"),
1919
],
20+
cfg = "exec",
2021
doc = "List of protoc plugins to apply",
2122
),
2223
),

modules/cpp/cpp_grpc_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ cpp_grpc_compile = rule(
1818
Label("//:proto_plugin"),
1919
Label("//:grpc_plugin"),
2020
],
21+
cfg = "exec",
2122
doc = "List of protoc plugins to apply",
2223
),
2324
),

modules/cpp/cpp_proto_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ cpp_proto_compile = rule(
1717
default = [
1818
Label("//:proto_plugin"),
1919
],
20+
cfg = "exec",
2021
doc = "List of protoc plugins to apply",
2122
),
2223
),

modules/doc/doc_docbook_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ doc_docbook_compile = rule(
1717
default = [
1818
Label("//:docbook_plugin"),
1919
],
20+
cfg = "exec",
2021
doc = "List of protoc plugins to apply",
2122
),
2223
),

modules/doc/doc_html_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ doc_html_compile = rule(
1717
default = [
1818
Label("//:html_plugin"),
1919
],
20+
cfg = "exec",
2021
doc = "List of protoc plugins to apply",
2122
),
2223
),

modules/doc/doc_json_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ doc_json_compile = rule(
1717
default = [
1818
Label("//:json_plugin"),
1919
],
20+
cfg = "exec",
2021
doc = "List of protoc plugins to apply",
2122
),
2223
),

modules/doc/doc_markdown_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ doc_markdown_compile = rule(
1717
default = [
1818
Label("//:markdown_plugin"),
1919
],
20+
cfg = "exec",
2021
doc = "List of protoc plugins to apply",
2122
),
2223
),

modules/go/go_grpc_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ go_grpc_compile = rule(
1818
Label("//:proto_plugin"),
1919
Label("//:grpc_plugin"),
2020
],
21+
cfg = "exec",
2122
doc = "List of protoc plugins to apply",
2223
),
2324
),

modules/go/go_proto_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ go_proto_compile = rule(
1717
default = [
1818
Label("//:proto_plugin"),
1919
],
20+
cfg = "exec",
2021
doc = "List of protoc plugins to apply",
2122
),
2223
),

modules/grpc_gateway/gateway_grpc_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ gateway_grpc_compile = rule(
1919
Label("@rules_proto_grpc_go//:grpc_plugin"),
2020
Label("@rules_proto_grpc_go//:proto_plugin"),
2121
],
22+
cfg = "exec",
2223
doc = "List of protoc plugins to apply",
2324
),
2425
),

modules/grpc_gateway/gateway_openapiv2_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ gateway_openapiv2_compile = rule(
1717
default = [
1818
Label("//:openapiv2_plugin"),
1919
],
20+
cfg = "exec",
2021
doc = "List of protoc plugins to apply",
2122
),
2223
),

modules/objc/objc_grpc_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ objc_grpc_compile = rule(
1818
Label("//:proto_plugin"),
1919
Label("//:grpc_plugin"),
2020
],
21+
cfg = "exec",
2122
doc = "List of protoc plugins to apply",
2223
),
2324
),

modules/objc/objc_proto_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ objc_proto_compile = rule(
1717
default = [
1818
Label("//:proto_plugin"),
1919
],
20+
cfg = "exec",
2021
doc = "List of protoc plugins to apply",
2122
),
2223
),

modules/python/python_grpc_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ python_grpc_compile = rule(
1818
Label("//:proto_plugin"),
1919
Label("//:grpc_plugin"),
2020
],
21+
cfg = "exec",
2122
doc = "List of protoc plugins to apply",
2223
),
2324
),

modules/python/python_grpclib_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ python_grpclib_compile = rule(
1818
Label("//:proto_plugin"),
1919
Label("//:grpclib_plugin"),
2020
],
21+
cfg = "exec",
2122
doc = "List of protoc plugins to apply",
2223
),
2324
),

modules/python/python_proto_compile.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ python_proto_compile = rule(
1717
default = [
1818
Label("//:proto_plugin"),
1919
],
20+
cfg = "exec",
2021
doc = "List of protoc plugins to apply",
2122
),
2223
),

tools/rulegen/common.go

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ var compileRuleTemplate = mustTemplate(`load(
8585
default = [{{ range .Rule.Plugins }}
8686
Label("{{ . }}"),{{ end }}
8787
],
88+
cfg = "exec",
8889
doc = "List of protoc plugins to apply",
8990
),
9091
),

0 commit comments

Comments
 (0)