actions / setup-java

Set up your GitHub Actions workflow with a specific version of Java
MIT License
1.51k stars 723 forks source link

`temurin` Distribution unavailable for `windows-latest` and `macos-latest` on JDK 8 #644

Open gmitch215 opened 1 month ago

gmitch215 commented 1 month ago

Description: Woke up to find that temurin job doesn't support JDK 8 on windows-latest and macos-latest.

The JDK can be downloaded here, and macOS is listed, so it does have support.

This comment states the same thing for windows-latest.

Task version: v4

Platform:

Runner type:

Repro steps:
Linked Job: here

- name: Set up JDK 8
  uses: actions/setup-java@v4
  with:
    distribution: 'temurin'
    java-version: '8'
    cache: 'gradle'

Expected behavior: Installs Temurin JDK 8.

Actual behavior:

Says JDK 8 isn't available

Run actions/setup-java@v4
  with:
    distribution: temurin
    java-version: 8
    cache: gradle
    java-package: jdk
    check-latest: false
    server-id: github
    server-username: GITHUB_ACTOR
    server-password: GITHUB_TOKEN
    overwrite-settings: true
    job-status: success
    token: ***
Installed distributions
  Trying to resolve the latest version from remote
  Error: Could not find satisfied version for SemVer '8'. 
  Available versions: 22.0.1+8, 22.0.0+36, 21.0.3+9.0.LTS, 21.0.2+13.0.LTS, 21.0.1+12.0.LTS, 21.0.0+35.0.LTS, 20.0.2+9, 20.0.1+9, 20.0.0+36, 19.0.2+7, 19.0.1+10, 19.0.0+36, 18.0.2+101, 18.0.2+9, 18.0.1+10, 18.0.0+36, 17.0.11+9, 17.0.10+7, 17.0.9+9, 17.0.8+101, 17.0.8+7, 17.0.7+7, 17.0.6+10, 17.0.5+8, 17.0.4+101, 17.0.4+8, 17.0.3+7, 17.0.2+8, 17.0.1+12, 17.0.0+35, 11.0.23+9, 11.0.22+7.1, 11.0.22+7, 11.0.21+9, 11.0.20+101, 11.0.20+8, 11.0.19+7, 11.0.18+10, 11.0.17+8, 11.0.16+101, 11.0.16+8, 11.0.15+10
aparnajyothi-y commented 1 month ago

Hello @gmitch215, Thank you for creating this issue and we will look into it :)

reneleonhardt commented 1 month ago

Same here for windows-latest with major 8 or SemVer 8.0.412+8.

Available versions: 22.0.1+8, 22.0.0+36, 21.0.3+9.0.LTS, 21.0.2+13.0.LTS, 21.0.1+12.0.LTS, 21.0.0+35.0.LTS, 20.0.2+9, 20.0.1+9, 20.0.0+36, 19.0.2+7, 19.0.1+10, 19.0.0+36, 18.0.2+101, 18.0.2+9, 18.0.1+10, 18.0.0+36, 17.0.11+9, 17.0.10+7, 17.0.9+9, 17.0.8+101, 17.0.8+7, 17.0.7+7, 17.0.6+10, 17.0.5+8, 17.0.4+101, 17.0.4+8, 17.0.3+7, 17.0.2+8, 17.0.1+12, 17.0.0+35, 11.0.23+9, 11.0.22+7.1, 11.0.22+7, 11.0.21+9, 11.0.20+101, 11.0.20+8, 11.0.19+7, 11.0.18+10, 11.0.17+8, 11.0.16+101, 11.0.16+8, 11.0.15+10

FYI I can't enable debug logs to manually check the API response https://github.com/actions/setup-java/blob/fd08b9c8dc6f530393a204a04e1f05101a5d00fd/src/distributions/temurin/installer.ts#L137-L139

act -s ACTIONS_STEP_DEBUG=true -P windows-latest=-self-hosted --container-architecture linux/amd64 --pull=false -W .github/workflows/ci.yml

https://github.com/actions/toolkit/blob/HEAD/docs/action-debugging.md#step-debug-logs