You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc="""`proto_library` targets to check for breaking changes""",
68
-
),
69
-
"against": attr.label(
70
-
mandatory=True,
71
-
allow_single_file=True,
72
-
doc="""The image file against which breaking changes are checked.""",
73
-
),
74
-
"config": attr.label(
75
-
allow_single_file=True,
76
-
doc="""The `buf.yaml` file""",
77
-
),
78
-
"module": attr.string(
79
-
default="",
80
-
doc="The module to use in v2 config",
81
-
),
82
-
"limit_to_input_files": attr.bool(
83
-
default=False,
84
-
doc="""Checks are limited to input files. If a file gets deleted that will not be caught. Please refer to https://docs.buf.build/breaking/protoc-plugin for more details""",
85
-
),
86
-
"exclude_imports": attr.bool(
87
-
default=True,
88
-
doc="""Checks are limited to the source files excluding imports from breaking change detection. Please refer to https://docs.buf.build/breaking/protoc-plugin for more details""",
89
-
),
90
-
"error_format": attr.string(
91
-
default="",
92
-
doc="error-format flag for buf breaking: https://buf.build/docs/reference/cli/buf/breaking#error-format",
93
-
),
94
-
"protoc_args": attr.string_list(
95
-
default= [],
96
-
doc="Additional arguments to pass to protoc",
97
-
),
98
-
},
99
-
toolchains= [_TOOLCHAIN],
60
+
attrs=dict(
61
+
{
62
+
"_windows_constraint": attr.label(
63
+
default="@platforms//os:windows",
64
+
),
65
+
"targets": attr.label_list(
66
+
providers= [ProtoInfo],
67
+
doc="""`proto_library` targets to check for breaking changes""",
68
+
),
69
+
"against": attr.label(
70
+
mandatory=True,
71
+
allow_single_file=True,
72
+
doc="""The image file against which breaking changes are checked.""",
73
+
),
74
+
"config": attr.label(
75
+
allow_single_file=True,
76
+
doc="""The `buf.yaml` file""",
77
+
),
78
+
"module": attr.string(
79
+
default="",
80
+
doc="The module to use in v2 config",
81
+
),
82
+
"limit_to_input_files": attr.bool(
83
+
default=False,
84
+
doc="""Checks are limited to input files. If a file gets deleted that will not be caught. Please refer to https://docs.buf.build/breaking/protoc-plugin for more details""",
85
+
),
86
+
"exclude_imports": attr.bool(
87
+
default=True,
88
+
doc="""Checks are limited to the source files excluding imports from breaking change detection. Please refer to https://docs.buf.build/breaking/protoc-plugin for more details""",
89
+
),
90
+
"error_format": attr.string(
91
+
default="",
92
+
doc="error-format flag for buf breaking: https://buf.build/docs/reference/cli/buf/breaking#error-format",
0 commit comments