You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@bazel_tools//third_party/jarjar was removed #7767
androidx.test (github/android/android_test) is broken HEAD with bazel 0.23.2 with the following error:
Step #2: ERROR: /workspace/ext/junit/java/androidx/test/ext/junit/BUILD.bazel:38:1: no such package '@bazel_tools//third_party/jarjar': BUILD file not found on package path and referenced by '//ext/junit/java/androidx/test/ext/junit:junit_release_jarjared'
It looks like @bazel_tools//third_party/jarjar has moved.
I chatted with @jin , he suggested filing an issue since this is a breaking change
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
@brettchabot indeed jarjar was moved out of the bazel binary as part of the effort to move the Java tools to a remote repository. I'll send a PR to re-add the targets, but they will refrence JarJar from the remote tools.
alias(
name = JarJar,
actual = select({
"@bazel_tools//src/conditions:linux_x86_64": ["@remote_java_tools_linux//:JarJar"],
"@bazel_tools//src/conditions:darwin": ["@remote_java_tools_darwin//:JarJar"],
"@bazel_tools//src/conditions:darwin_x86_64": ["@remote_java_tools_darwin//:JarJar"],
"@bazel_tools//src/conditions:windows": ["@remote_java_tools_windows//:JarJar"],
# Any repository can be used.
"@bazel_tools//conditions:default": ["@remote_java_tools_linux//:JarJar"],
})
)
or use any of the repos since JarJar is a deploy jar and is platform agnostic:
alias(
name = "JarJar",
actual = "@remote_java_tools_darwin//:JarJar"
)
@steeve you can use @remote_java_tools_linux//:JarJar
@iirina , I am not able to see the JarJar target now. I can see only the below
jenkins@bazel5-d57575cd6-sdxvb:/repo$ tools/bazel query "@remote_java_tools_linux//:*"
Another command (pid=29262) is running. Waiting for it to complete on the server (server_pid=9187)...
@remote_java_tools_linux//:BUILD
@remote_java_tools_linux//:ijar_prebuilt_binary
@remote_java_tools_linux//:java_tools/ijar/ijar
@remote_java_tools_linux//:java_tools/ijar/ijar.exe
@remote_java_tools_linux//:java_tools/src/tools/singlejar/singlejar_local
@remote_java_tools_linux//:java_tools/src/tools/singlejar/singlejar_local.exe
@remote_java_tools_linux//:prebuilt_singlejar
@remote_java_tools_linux//:windows
Loading: 1 packages loaded
jenkins@bazel5-d57575cd6-sdxvb:/repo$
Did this get moved somewhere else?
I am using bazel 6.4.0
Activity
jin commentedon Mar 19, 2019
@iirina could you take a look please?
steeve commentedon Mar 19, 2019
You can use a newer version of jarjar with the following repos/build targets:
iirina commentedon Mar 20, 2019
@brettchabot indeed jarjar was moved out of the bazel binary as part of the effort to move the Java tools to a remote repository. I'll send a PR to re-add the targets, but they will refrence JarJar from the remote tools.
Re-add @bazel_tools//third_party/jarjar
steeve commentedon Aug 22, 2019
@iirina what is the new target one should use ?
iirina commentedon Aug 22, 2019
@steeve you can use
@remote_java_tools_linux//:JarJarsteeve commentedon Aug 22, 2019
@iirina it seems on my machine (macos) it's
@remote_java_tools_darwin//:JarJar. It makes it hard to depend on since the repo name has the os inside :(iirina commentedon Aug 22, 2019
You can add an alias if you want:
or use any of the repos since JarJar is a deploy jar and is platform agnostic:
steeve commentedon Aug 22, 2019
That's great thank you !
uajith commentedon Jan 22, 2024
@iirina , I am not able to see the JarJar target now. I can see only the below
jenkins@bazel5-d57575cd6-sdxvb:
/repo$ tools/bazel query "@remote_java_tools_linux//:*"/repo$Another command (pid=29262) is running. Waiting for it to complete on the server (server_pid=9187)...
@remote_java_tools_linux//:BUILD
@remote_java_tools_linux//:ijar_prebuilt_binary
@remote_java_tools_linux//:java_tools/ijar/ijar
@remote_java_tools_linux//:java_tools/ijar/ijar.exe
@remote_java_tools_linux//:java_tools/src/tools/singlejar/singlejar_local
@remote_java_tools_linux//:java_tools/src/tools/singlejar/singlejar_local.exe
@remote_java_tools_linux//:prebuilt_singlejar
@remote_java_tools_linux//:windows
Loading: 1 packages loaded
jenkins@bazel5-d57575cd6-sdxvb:
Did this get moved somewhere else?
I am using bazel 6.4.0