-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use remote_java_repository
with a JDK release where Java home is nested?
#102
Comments
On closer inspection I'm not sure if there is something that is causing the files not to be unpacked at all, I can find the tar file in the cache and the path where it was meant to be unpacked but the directory is empty. (hence I run into errors with bin/javac not being found etc) Any tips on debugging what is going wrong here? |
@josephglanville have you tried ## Setup: Java
load("@rules_java//toolchains:remote_java_repository.bzl", "remote_java_repository")
GRAALVM_SDK_VERSION = "23.1.0-dev-20230803_2234"
JAVA_VERSION = "21"
JAVA_TOOLCHAIN = "@graalvm//:all"
GRAALVM_DOWNLOAD_PREFIX = "https://github.com/graalvm/graalvm-ce-dev-builds/releases/download"
GRAALVM_PATH_PREFIX = "graalvm-community-openjdk-21+30.1"
remote_java_repository(
name = "graalvm",
sha256 = "01e1934581a84467a882be2ca64a735e296e3b7e6f470effff076730fb516e3b",
strip_prefix = "%s/Contents/Home" % GRAALVM_PATH_PREFIX,
target_compatible_with = [
"@platforms//cpu:aarch64",
"@platforms//os:macos",
],
urls = [
"%s/%s/graalvm-community-java%s-darwin-aarch64-dev.tar.gz" % (
GRAALVM_DOWNLOAD_PREFIX,
GRAALVM_SDK_VERSION,
JAVA_VERSION,
),
],
version = JAVA_VERSION,
)
register_toolchains(
JAVA_TOOLCHAIN,
) |
@josephglanville i encountered some trouble with this too, so i released |
@josephglanville did #102 (comment) fix this for you? |
@hvadehra I haven't been back to this project to try out the fix unfortunately. |
Alright, feel free to ping here if this comes up again. |
I'm trying to use
remote_java_repository
with GraalVM releases on MacOS.When extracting the package the layout is of the form:
There are no top level symlinks into the nested
bin
directory as can be seen in the Zulu JDK releases thatremote_java_repository
is normally used with.Would it be possible to make this rule configurable so that the path to the Java home inside the extracted distribution can be customized?
The text was updated successfully, but these errors were encountered: