Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not rewrite
.jdeps
file when it is empty.
`JavaCompileAction` rewrites the `.jdeps` files after running the spawn if path stripping was used. The code skips the rewrite if there is [any unstripped path in the file](https://github.com/bazelbuild/bazel/blob/6142eac9153b539661c43dada5e11b552a6f58f6/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompileAction.java#L699-L703). This will not happen if the jdeps file is empty. Skip rewriting the `.jdeps` file if there are no paths in it. PiperOrigin-RevId: 447475281
- Loading branch information