Open
Description
Issue Summary
Outputs for .jdeps
files from kt_jvm_library
targets include the absolute path to kotlin-stdlib.jar
. This means that cache entries which include these outputs are not shared with other users. The path in my case looks like:
.../external/com_github_jetbrains_kotlin/lib/kotlin-stdlib.jar
Steps to Reproduce
Simply build any kotlin library target then cat
the jdeps output file created:
bazel build //path/to/kotlin/library/target:target_lib
...
INFO: Found 1 target...
Target //path/to/kotlin/library/target:target_lib up-to-date:
dist/bin/path/to/kotlin/library/target/target_lib.jar
dist/bin/path/to/kotlin/library/target/target_lib.jdeps
...
cat dist/bin/path/to/kotlin/library/target/target_lib.jdeps
^
Z.cache/bazel/_bazel_ted_tenedorio/8d13339fa502dfceb2b05be00f715cc8/execroot/treehouse/external/com_github_jetbrains_kotlin/lib/kotlin-stdlib.jar
7
3bazel-out/k8-fastbuild/bin/bazel/jvm/impl/empty.jar
�
�bazel-out/k8-fastbuild/bin/external/maven/v1/https/maven.org/apiguardian/apiguardian-api/1.1.0/header_apiguardian-api-1.1.0.jar
�
�bazel-out/k8-fastbuild/bin/external/maven/v1/https/maven.org/junit/jupiter/junit-jupiter-api/5.7.2/header_junit-jupiter-api-5.7.2.jar
�
�bazel-out/k8-fastbuild/bin/external/maven/v1/https/maven.org/junit/platform/junit-platform-commons/1.7.2/header_junit-platform-commons-1.7.2.jar
�
�bazel-out/k8-fastbuild/bin/external/maven/v1/https/maven.org/opentest4j/opentest4j/1.2.0/header_opentest4j-1.2.0.jar
A
=external/com_github_jetbrains_kotlin/lib/annotations-13.0.jar
C
?external/com_github_jetbrains_kotlin/lib/kotlin-stdlib-jdk7.jar
C
?external/com_github_jetbrains_kotlin/lib/kotlin-stdlib-jdk8.jar
>
:external/com_github_jetbrains_kotlin/lib/kotlin-stdlib.jarC//path/to/kotlin/library/target:target_lib%