Fix bazel java_import conflicting actions error
There was an error connected to creation of ijar action inside starlarkified java_import with the same output files. Output files had relative path ("../") after the label name, which removed its label and made conflicting actions error.
@@ -46,7 +46,7 @@ def _process_with_ijars_if_needed(jars, ctx):
for jar in jars:
interface_jar = jar
if use_ijars:
- ijar_basename = jar.short_path.removesuffix("." + jar.extension) + "-ijar.jar"
+ ijar_basename = jar.short_path.removeprefix("../").removesuffix("." + jar.extension) + "-ijar.jar"
interface_jar_directory = "_ijar/" + ctx.label.name + "/" + ijar_basename
interface_jar = ctx.actions.declare_file(interface_jar_directory)
