-
Notifications
You must be signed in to change notification settings - Fork 818
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Action versions
- Working:
actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165(5.0.0) - Failing:
actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e(5.1.0)
Config
File: api/.tool-versions
java temurin-v21.0.7Workflow usage (simplified)
- uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e
with:
distribution: temurin
java-version-file: api/.tool-versionsSteps to reproduce
- Create
api/.tool-versionswith the content above. - Use
java-version-file: api/.tool-versionswith the 5.1.0 action. - Run the workflow.
Actual behavior (5.1.0 – f2beeb2)
The step fails with:
Installed distributions
Error: No supported version was found in file api/.tool-versions
(node:2014) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.Expected behavior (5.0.0 – dded088)
The same file works and Java 21.0.7 is resolved, downloaded, and configured successfully.
Full logs
5.1.0 (failing)
Prepare all required actions
Getting action download info
Download action repository 'actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e' (SHA:f2beeb24e141e01a676f977032f5a29d81c9e27e)
Run ./.github/actions/setup-java
Run actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e
Installed distributions
Error: No supported version was found in file api/.tool-versions
(node:2014) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
5.0.0 (working)
Prepare all required actions
Getting action download info
Download action repository 'actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165' (SHA:dded0888837ed1f317902acf8a20df0ad188d165)
Run ./.github/actions/setup-java
Run actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
Installed distributions
Trying to resolve the latest version from remote
(node:2038) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Resolved latest version as 21.0.7+6.0.LTS
Trying to download...
Downloading Java 21.0.7+6.0.LTS (Temurin-Hotspot) from https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.7%2B6/OpenJDK21U-jdk_x64_linux_hotspot_21.0.7_6.tar.gz ...
Extracting Java archive...
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/8140c74e-3794-4b1b-aa91-b34b33c475c5 -f /home/runner/work/_temp/cbf5fc09-8cbf-40af-90cc-474455cad3dc
Java 21.0.7+6.0.LTS was downloaded
Setting Java 21.0.7+6.0.LTS as the default
Creating toolchains.xml for JDK version 21.0.7 from temurin
Writing to /home/runner/.m2/toolchains.xml
Java configuration:
Distribution: temurin
Version: 21.0.7+6.0.LTS
Path: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.7-6.0.LTS/x64
Creating settings.xml with server-id: github
Writing to /home/runner/.m2/settings.xml
maven cache is not found
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working