Skip to content

Commit d3c2f5a

Browse files
committedJul 24, 2024·
bazel: Don't use artifact() for protobuf deps
We don't include protobuf in IO_GRPC_GRPC_JAVA_ARTIFACTS, so there might not actually be an alias available for it to @com_google_protobuf. While we could add it, it is easier to use the @com_google_protobuf references directly. This was preventing `bazel query 'deps(//...)' from succeeding, because it couldn't find javalite.
1 parent 7a25e68 commit d3c2f5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎protobuf-lite/BUILD.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ java_library(
1212
artifact("com.google.guava:guava"),
1313
artifact("com.google.j2objc:j2objc-annotations"),
1414
] + select({
15-
":android": [artifact("com.google.protobuf:protobuf-javalite")],
16-
"//conditions:default": [artifact("com.google.protobuf:protobuf-java")],
15+
":android": ["@com_google_protobuf//:protobuf_javalite"],
16+
"//conditions:default": ["@com_google_protobuf//:protobuf_java"],
1717
}),
1818
)
1919

0 commit comments

Comments
 (0)
Please sign in to comment.