Closed arjantop closed 5 years ago
I think the problem is here: https://github.com/bazelbuild/bazel/blob/master/src/tools/generate_workspace/src/main/java/com/google/devtools/build/workspace/maven/Resolver.java#L166
New instance of Rule is created and transitive dependencies are resolved and added only in the case that the dependency is new. If the dependency already exists the dependencies will never be populated and https://github.com/bazelbuild/bazel/blob/master/src/tools/generate_workspace/src/main/java/com/google/devtools/build/workspace/maven/Resolver.java#L185 will have no effect.
any progress here?
generate-workspace is no longer supported.
Description
When using
generate_workspace
transitive dependencies are not always included in theexports
parameter ofjava_library
. This does not always happen (one guess would be that this happens when two artifacts share some common dependencies).Example
bazel run //src/tools/generate_workspace -- --artifact=com.twitter:twitter-server_2.11:1.25.0
Output:
Output (transitive dependencies are missing):