bazel-deps icon indicating copy to clipboard operation
bazel-deps copied to clipboard

circular exports graph

Open ribrdb opened this issue 3 years ago • 2 comments

I'm getting this error message:

[main] ERROR MakeDeps - circular exports graph: com.google.flogger:flogger, com.google.flogger:flogger

I have no idea what this means or how to resolve it.

ribrdb avatar Feb 12 '21 21:02 ribrdb

It generally means that there is a cycle somewhere: x export y, y exports z, z exports x.

Something like that.

The error message should be clearer, but I would look at your file and see what flogger is exporting, or what is exporting flogger, and start removing things.

johnynek avatar Feb 12 '21 21:02 johnynek

btw: this may be a real circular dependency in the maven graph. We could probably support this by combining all those into a single target since bazel forbids loops.

johnynek avatar Mar 24 '22 18:03 johnynek