graalvm / setup-graalvm

GitHub Action for setting up GraalVM distributions.
https://www.graalvm.org
Universal Permissive License v1.0
195 stars 28 forks source link

Getting `Error: Invalid Version: 21` #58

Closed TharmiganK closed 1 year ago

TharmiganK commented 1 year ago

The workflow is failing at Setup GraalVM step which is configured like this:

      - name: Setup GraalVM
        uses: graalvm/setup-graalvm@v1
        with:
          java-version: '17.0.7'
          distribution: 'graalvm-community'
          components: 'native-image'
          github-token: ${{ secrets.GITHUB_TOKEN }}
          set-java-home: 'false'

Error:

Run graalvm/setup-graalvm@v1
  with:
    java-version: 17.0.7
    distribution: graalvm-community
    components: native-image
    github-token: ***
    set-java-home: false
    check-for-updates: true
    native-image-musl: false
    native-image-job-reports: false
    native-image-pr-reports: false
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.7-7/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.7-7/x64
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/d90b15f7-3ab4-4407-96e8-9f21da727b62 -f /home/runner/work/_temp/001c4ecc-c5d9-4626-8c28-f9079df786f3
Adding graalvm-community-jdk-17.0.7_linux-x64_bin 17.0.7 to tool-cache ...
Error: Invalid Version: 21

@fniephaus Appreciate any insights on this error and how to resolve this

fniephaus commented 1 year ago

Thanks for raising this, @TharmiganK. I've just pushed a fix via https://github.com/graalvm/setup-graalvm/commit/0e29e36dce77b07eb899abac809c2fce9d60c140. Please restart your builds and let me know if the issue persists.

Happy building!