]> git.feebdaed.xyz Git - 0xmirror/grpc.git/commitdiff
Automated Code Change
authorJie Luo <jieluo@google.com>
Thu, 18 Dec 2025 23:30:57 +0000 (15:30 -0800)
committerCopybara-Service <copybara-worker@google.com>
Thu, 18 Dec 2025 23:33:40 +0000 (15:33 -0800)
PiperOrigin-RevId: 846438320

bazel/generate_cc.bzl
bazel/generate_objc.bzl
bazel/protobuf.bzl
bazel/python_rules.bzl

index ee44332d14487beda6b992c643de5b97c36984bf..5228ea732fa586f344eb88cd23b5076dc87ffc11 100644 (file)
@@ -63,7 +63,7 @@ def generate_cc_impl(ctx):
     includes = [
         f
         for src in ctx.attr.srcs
-        for f in src[ProtoInfo].transitive_imports.to_list()
+        for f in src[ProtoInfo].transitive_sources.to_list()
     ]
     outs = []
     proto_root = get_proto_root(
index 6fadabc4707f11f6f56c1cf2deaa090a7cee3b14..e2b697745f5dfddbc0b1696afd41b7311e1bb7c2 100644 (file)
@@ -40,7 +40,7 @@ def _generate_objc_impl(ctx):
     protos = [
         f
         for src in ctx.attr.deps
-        for f in src[ProtoInfo].transitive_imports.to_list()
+        for f in src[ProtoInfo].transitive_sources.to_list()
     ]
 
     target_package = _join_directories([ctx.label.workspace_root, ctx.label.package])
index 6661a4a733010f1b9dfe19c39c91fbccc5f085be..bd93b5042635736d8986edb6db86e169c56e2d6f 100644 (file)
@@ -233,7 +233,7 @@ def includes_from_deps(deps):
     return [
         file
         for src in deps
-        for file in src[ProtoInfo].transitive_imports.to_list()
+        for file in src[ProtoInfo].transitive_sources.to_list()
     ]
 
 def get_proto_arguments(protos, genfiles_dir_path):
index e6cf84dca200e513d0b092ecb774a83726d78206..7bc1dfcf4e0d2785eba4ab3d3461ba63e13994c7 100644 (file)
@@ -62,7 +62,7 @@ def _gen_py_aspect_impl(target, context):
     for p in target[ProtoInfo].direct_sources:
         protos.append(get_staged_proto_file(target.label, context, p))
 
-    includes = depset(direct = protos, transitive = [target[ProtoInfo].transitive_imports])
+    includes = depset(direct = protos, transitive = [target[ProtoInfo].transitive_sources])
     out_files = (declare_out_files(protos, context, _GENERATED_PROTO_FORMAT) +
                  declare_out_files(protos, context, _GENERATED_PROTO_STUB_FORMAT))
     generated_py_srcs = out_files