Skip to content

Maven dependencies not exposed to Bazel users #9132

@Kernald

Description

@Kernald

What version of protobuf and what language are you using?
Version: v3.19.0
Language: C++/Java/Kotlin

What operating system (Linux, Windows, ...) and version?
macOS 11.6

What runtime / compiler are you using (e.g., python version or gcc version)
LLVM 12.0.0, Kotlinc 1.5.21

What did you do?
Steps to reproduce the behavior:

  1. Depend on Protobuf 3.19.0 through Bazel
  2. Try to build something depending on @com_google_protobuf//java/util:util

What did you expect to see
The build should succeed

What did you see instead?

ERROR: /private/var/tmp/_bazel_kernald/dc8fa02be43b6315d36f6bf2bf056429/external/com_google_protobuf/java/util/BUILD:7:13: no such target '//external:j2objc_annotations': target 'j2objc_annotations' not declared in package 'external' defined by /Users/kernald/dev/monos/WORKSPACE and referenced by '@com_google_protobuf//java/util:util'
ERROR: /private/var/tmp/_bazel_kernald/dc8fa02be43b6315d36f6bf2bf056429/external/com_google_protobuf/java/util/BUILD:7:13: no such target '//external:jsr305': target 'jsr305' not declared in package 'external' defined by /Users/kernald/dev/monos/WORKSPACE and referenced by '@com_google_protobuf//java/util:util'

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

Anything else we should know about your project / environment
gRPC-Java and gRPC-Kotlin (at least) address this problem by exposing the list of dependencies they need: https://github.com/grpc/grpc-java/blob/25022f6846ec1fdd8003789cba32d4ca981c3171/repositories.bzl

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions