Skip to content

Commit 17634e6

Browse files
ericsalocopybara-github
authored andcommitted
BEGIN_PUBLIC
protobuf: delete the _retain_options attribute from proto_library() END_PUBLIC PiperOrigin-RevId: 671513654 Change-Id: Iebcee12a7e001c9a41b96fe148f61972e141f3a8
1 parent 60ebabb commit 17634e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/starlark/builtins_bzl/common/proto/proto_library.bzl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ def _write_descriptor_set(ctx, proto_info, deps, exports, descriptor_set):
163163
args = ctx.actions.args()
164164
if ctx.fragments.proto.experimental_proto_descriptorsets_include_source_info():
165165
args.add("--include_source_info")
166-
if hasattr(ctx.attr, "_retain_options") and ctx.attr._retain_options:
167-
args.add("--retain_options")
166+
args.add("--retain_options")
168167

169168
strict_deps_mode = ctx.fragments.proto.strict_proto_deps()
170169
strict_deps = strict_deps_mode != "OFF" and strict_deps_mode != "DEFAULT"

0 commit comments

Comments
 (0)