-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
@com_google_protobuf//:protobuf_java_util pulls in duplicate classes #9192
Comments
Signed-off-by: Oliver Eikemeier <[email protected]>
hmmm, aside from the changes we made to bazel to remove the dupes, I am not sure what to do here. Looking at the graph, it's depending on standard java_library targets which shouldn't be causing duplication. Is there any more debugging you can help us with? |
I'm not an expert, but
while
and I guess it shouldn't. That would probably be Line 15 in 3a4d931
|
Oh interesting, can you try a PR that removes it and see if it's OK? https://github.com/protocolbuffers/protobuf/blob/master/java/util/BUILD#L15 That is probably just an error. |
Indeed, it does, see the latest commit of https://github.com/eikemeier/proto-java2 |
What version of protobuf and what language are you using?
Version: v3.19.1
Language: Java
What operating system (Linux, Windows, ...) and version?
macOS 10.15.7
What runtime / compiler are you using (e.g., python version or gcc version)
JDK 17.0.1
What did you do?
This is a follow-up to #8925
Steps to reproduce the behavior:
What did you expect to see
No duplicate resources.
What did you see instead?
Multiple copies of the same class, see output of the tool.
@com_google_protobuf//:protobuf_java_util
pulls inSee also the README in the repository above to reproduce.
Anything else we should know about your project / environment
Nothing special, Bazelisk or Bazel 5.0rc1 required.
The text was updated successfully, but these errors were encountered: