Open
Description
Repro: https://github.com/wix-playground/scala-unused-deps/tree/master/runtime_deps
The problem: in plus one mode runtime dependencies are transitively collected and become a problem for unused dep checking which checks only compile dependencies. So in case A
has a compile dependency B
, but actually uses runtime deps from B
, unused dependency checker offers to remove it with buildozer
command. This works fine for compilation, but may not be detected if there's no proper test that executes a case to validate runtime requirements.
While the actual problem is in misuse of the compile deps, currently such combination of deps is a valid use of bazel.