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
In this file we have an example where we use cc_eventuals_library:
cc_eventuals_library(
name = "object_store_eventuals_generated",
srcs = [":object_store.proto"],
deps = [
":object_store_proto",
# We need to repeat all of the dependencies of `object_store_proto` here.
# That's not very nice.
":location_proto",
":reference_proto",
The dependency on the target :object_store_proto brings in the following:
As can be seen, :object_store_proto already depends on :location_proto and :reference_proto. My normal Bazel intuition is that by having :object_store_eventuals_generated depend on :object_store_proto it implicitly also depends on :location_proto and :reference_proto. However, that is not currently the case.
If I remove e.g. :location_proto from :object_store_eventuals_generated I get the following error:
In this file we have an example where we use
cc_eventuals_library
:The dependency on the target
:object_store_proto
brings in the following:As can be seen,
:object_store_proto
already depends on:location_proto
and:reference_proto
. My normal Bazel intuition is that by having:object_store_eventuals_generated
depend on:object_store_proto
it implicitly also depends on:location_proto
and:reference_proto
. However, that is not currently the case.If I remove e.g.
:location_proto
from:object_store_eventuals_generated
I get the following error:I would like to avoid having to re-specify all transitive dependencies when using
cc_eventuals_library
.The text was updated successfully, but these errors were encountered: