False-positive repro rules_scala unused deps
In this repo there are 3 targets:
Target | Rule Type | Dependencies |
---|---|---|
b1 | scala_library | |
b2 | scala_library | b3 |
b3 | scala_library |
Target b3
consist of a single src file - java interface
Target b2
depends and uses b3
java interface
Running build with unused deps on warn
, the output is:
INFO: From scala //src/main/scala/com/comp/b2:b2:
warning: Target '//src/main/scala/com/comp/b3:b3' is specified as a dependency to //src/main/scala/com/comp/b2:b2 but isn't used, please remove it from the deps.
You can use the following buildozer command:
buildozer 'remove deps //src/main/scala/com/comp/b3:b3' //src/main/scala/com/comp/b2:b2
one warning found
The issue is not reproduced when changing the java interface to be a scala class (object, trait, etc...)