Giter Club home page Giter Club logo

Comments (6)

sgammon avatar sgammon commented on June 5, 2024 1

@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.

hvadehra avatar hvadehra commented on June 5, 2024 1

Alright, feel free to ping here if this comes up again.

from rules_java.

josephglanville avatar josephglanville commented on June 5, 2024

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.

sgammon avatar sgammon commented on June 5, 2024

@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.

hvadehra avatar hvadehra commented on June 5, 2024

@josephglanville did #102 (comment) fix this for you?

from rules_java.

josephglanville avatar josephglanville commented on June 5, 2024

@hvadehra I haven't been back to this project to try out the fix unfortunately.

from rules_java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.