temurin-jre: correct extract_dir in autoupdate by B67687 · Pull Request #602 · ScoopInstaller/Java · GitHub
Skip to content

temurin-jre: correct extract_dir in autoupdate#602

Closed
B67687 wants to merge 6 commits into
ScoopInstaller:masterfrom
B67687:fix/temurin-jre-extract-dir
Closed

temurin-jre: correct extract_dir in autoupdate#602
B67687 wants to merge 6 commits into
ScoopInstaller:masterfrom
B67687:fix/temurin-jre-extract-dir

Conversation

@B67687

@B67687 B67687 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Closes #552

Summary

Fixes the extraction directory mismatch bug that causes temurin-jre and temurin-lts-jre updates to fail.

Problem

The autoupdate formula uses $matchTag-jre which adds a -jre suffix to the expected extraction directory. However, the actual extracted directory from the Temurin JRE ZIP files is just jdk-{tag} WITHOUT the -jre suffix.

This caused issue #552 where updating temurin-jre from 24.0.1-9 to 24.0.2-12 failed with "Could not find jdk-24.0.2+12-jre".

Fix

  • temurin-jre.json: Changed autoupdate.extract_dir from $matchTag-jre to $matchTag
  • temurin-lts-jre.json: Changed both top-level extract_dir and autoupdate.extract_dir from -jre suffix to base tag; also updated to latest LTS version 25.0.3-9

Validation

All checks pass in both manifests.

@coderabbitai

coderabbitai Bot commented Apr 30, 2026

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

All changes look good.

Wait for review from human collaborators.

temurin-jre

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@github-actions

Copy link
Copy Markdown
Contributor

Your changes did not pass all checks.

Please address the issues in the manifest and comment starting with /verify to rerun the checks.

temurin-jre

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

temurin-lts-jre

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@github-actions

Copy link
Copy Markdown
Contributor

All changes look good.

Wait for review from human collaborators.

temurin-jre

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

temurin-lts-jre

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@B67687 B67687 changed the title fix(temurin-jre): correct extract_dir in autoupdate - closes #552 fix(temurin-jre): correct extract_dir in autoupdate Apr 30, 2026
@B67687 B67687 changed the title fix(temurin-jre): correct extract_dir in autoupdate temurin-jre: correct extract_dir in autoupdate Apr 30, 2026
@B67687 B67687 closed this Apr 30, 2026
@B67687 B67687 deleted the fix/temurin-jre-extract-dir branch April 30, 2026 03:38
@B67687 B67687 restored the fix/temurin-jre-extract-dir branch April 30, 2026 03:43
@B67687 B67687 reopened this Apr 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

All changes look good.

Wait for review from human collaborators.

temurin-jre

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

temurin-lts-jre

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

The  suffix IS correct for Temurin JRE ZIPs. All specific-version
JRE manifests (temurin26-jre.json, temurin25-jre.json, etc.) consistently
use the  suffix. The PR's removal of it was based on an incorrect
assumption about the ZIP's extracted directory name.
@B67687

B67687 commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

@B67687 B67687 closed this May 22, 2026
@B67687 B67687 deleted the fix/temurin-jre-extract-dir branch May 22, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

temurin-jre update failed - Could not find 'jdk-24.0.2+12-jre'! (error 11)

1 participant