Skip to content

Commit

Permalink
[Bazel] Add back a filegroup for :well_known_protos. (#10061)
Browse files Browse the repository at this point in the history
This was removed in #9915, since it is misleadingly named (the set of sources is "well known," but not the same as the Well-Known Types).
  • Loading branch information
dlj-NaN authored May 26, 2022
1 parent f2e06fe commit ceaae1b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,23 @@ cc_library(
visibility = ["//visibility:public"],
)

# Source protos that are typically part of the protobuf runtime.
#
# DEPRECATED: Prefer :well_known_type_protos for the Well-Known Types
# (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf)
# or :descriptor_proto(_srcs) for descriptor.proto (source), or
# :compiler_plugin_proto for compiler/plugin.proto.
filegroup(
name = "well_known_protos",
srcs = [
":descriptor_proto_srcs",
":well_known_type_protos",
"//src/google/protobuf/compiler:plugin.proto",
],
deprecation = "Prefer :well_known_type_protos instead.",
visibility = ["//visibility:public"],
)

################################################################################
# Protocol Buffers Compiler
################################################################################
Expand Down
5 changes: 5 additions & 0 deletions src/google/protobuf/compiler/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ filegroup(
],
)

exports_files(
srcs = ["plugin.proto"],
visibility = ["//:__pkg__"],
)

cc_library(
name = "mock_code_generator",
testonly = 1,
Expand Down

0 comments on commit ceaae1b

Please sign in to comment.