many-vase-25409
12/17/2023, 11:38 AM-Wunused:imports
and there are a few cases where I need to put unused imports into the code to make it compile with pants. Is this a bug or do I have to add some extra metadata to help the dependency detection? It happens with classes that are in the same package and thus normally don't need explicit imports.fast-nail-55400
12/17/2023, 1:20 PMfast-nail-55400
12/17/2023, 1:22 PMmany-vase-25409
12/17/2023, 1:30 PMmany-vase-25409
12/17/2023, 1:31 PMmany-vase-25409
12/17/2023, 1:32 PMfast-nail-55400
12/17/2023, 1:43 PMmany-vase-25409
12/17/2023, 1:50 PMmany-vase-25409
12/17/2023, 2:02 PMhappy-kitchen-89482
12/17/2023, 4:27 PMdependencies=[]
in the BUILD file targethappy-kitchen-89482
12/17/2023, 4:27 PMmany-vase-25409
12/17/2023, 11:26 PMhappy-kitchen-89482
12/17/2023, 11:45 PMscala_sources(
overrides={
"my_source.scala": { "dependencies": ["path/to/my/missing/dep.scala"]}
}
)
many-vase-25409
12/17/2023, 11:58 PMoverrides
, works now! 👍