Empty JavaInfo.transitive_compile_time_jars
for java_binary
and java_test
targets
#22147
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Rules-Java
Issues for Java rules
type: documentation (cleanup)
type: support / not a bug (process)
Description of the bug:
As of Bazel 7.1.1, whereas the
transitive_compile_time_jars
field ofJavaInfo
providers is populated forjava_library
targets, it happens to always hold an emptydepset
forjava_binary
andjava_test
targets.I haven't found any documentation describing such a limitation. Or is there an experimental flag to be turned on to systematically populate this field?
A workaround consists in emulating it by filtering the non-source jar from the
inputs
field of the first action intarget.actions
whosemnemonic
is "Javac", but it isn't very structural.Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
From an aspect rule implementation:
Which operating system are you running Bazel on?
Ubuntu 22.04.4 LTS
What is the output of
bazel info release
?release 7.1.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
Nope.
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: