Comments (6)
@josephglanville i encountered some trouble with this too, so i released rules_graalvm
over the weekend, which supports use of GraalVM as a Java toolchain.
from rules_java.
Alright, feel free to ping here if this comes up again.
from rules_java.
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?
from rules_java.
@josephglanville have you tried strip_prefix
?
## 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,
)
from rules_java.
@josephglanville did #102 (comment) fix this for you?
from rules_java.
@hvadehra I haven't been back to this project to try out the fix unfortunately.
from rules_java.
Related Issues (20)
- Upgrade from 5.4.0 to 5.5 errors HOT 3
- Dependency on `rules_license` HOT 1
- Problem in version 6.5.0: no such target '@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type' HOT 7
- Flip `incompatible_disallow_empty_glob`
- Add jmods to jdk targets HOT 1
- Add support for JDK 21 HOT 1
- Push a new release containing JDK 21 HOT 14
- Java toolchain is not respected HOT 2
- Release: rules_java 7.3.1 HOT 1
- JRE logs to stdout and breaks javac/scalac worker on certain environments HOT 2
- rules_java > 7.2.0 incorrectly states it is compatible with Bazel >= 6.4.0 HOT 1
- Provide a way of packaging separate layers into Java container after deprecation of rules_docker HOT 3
- CI postsubmit is broken HOT 3
- Release: rules_java 7.3.2 HOT 4
- rules_java not respecting --tool_java_language_version/--tool_java_runtime_version for test_jar's as of at least 7.1.0 HOT 2
- Turbine native image broke NONPREBUILT_TOOLCHAIN_CONFIGURATION
- Release: rules_java 7.4.0 on BCR HOT 3
- Broken local Java version detection
- Improve performance when running a large number of JUnit tests HOT 1
- java_tools should have prebuilt Linux AArch64 binaries HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_java.