From somewhere over the rainbow we had a proposal for code like this:
COMMON_DEPS = [ # Please find a better name!
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:duration_proto",
]
proto_library(
name = "foo",
deps = COMMON_DEPS,
)
cc_eventuals_library(
name = "object_store_eventuals_generated",
visibility = ["//visibility:public"],
deps = [
":foo",
] + COMMON_DEPS,
)
The rule generation should be able to deduce the common dependencies automagically based on the foo dependencies.