Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR mandatory providers: 'CcInfo' or 'JavaInfo' #117

Closed
systemlogic opened this issue Aug 14, 2019 · 1 comment
Closed

ERROR mandatory providers: 'CcInfo' or 'JavaInfo' #117

systemlogic opened this issue Aug 14, 2019 · 1 comment

Comments

@systemlogic
Copy link

Getting below error with bazel 0.24.1 while using stackb Repository

ERROR: /home/harora37/.cache/bazel/_bazel_harora37/4614b08a42facc1b3b190dce93d1ca57/external/com_google_protobuf/BUILD:639:12: in deps attribute of java_library rule @com_google_protobuf//:protobuf_java_util: maven_jar rule '//external:error_prone_annotations' is misplaced here (expected cc_binary, cc_library, genrule, genproto, java_import, java_library, java_proto_library, java_lite_proto_library, proto_library, sh_binary or sh_library) and '//external:error_prone_annotations' does not have mandatory providers: 'CcInfo' or 'JavaInfo'
ERROR: /home/harora37/.cache/bazel/_bazel_harora37/4614b08a42facc1b3b190dce93d1ca57/external/com_google_protobuf/BUILD:632:1: in java_library rule @com_google_protobuf//:protobuf_java_util: target '//external:error_prone_annotations' is not visible from target '@com_google_protobuf//:protobuf_java_util'. Check the visibility declaration of the former target if you think the dependency is legitimate
ERROR: Analysis of target '//proto/common:keyvalue_java_proto' failed; build aborted: Analysis of target '@com_google_protobuf//:protobuf_java_util' failed; build aborted
java_grpc_library(
    name = "keyvalue_java_proto",
    deps = [
        ":keyvalue_proto",
    ],
)

Please help

@pcj
Copy link
Member

pcj commented Nov 16, 2021

Closing stale PRs and issues, please reopen new one if desired.

@pcj pcj closed this as completed Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants