-
Notifications
You must be signed in to change notification settings - Fork 112
temurin: Add version 26 #586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
f-cramer
wants to merge
1
commit into
ScoopInstaller:master
Choose a base branch
from
f-cramer:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+80
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| { | ||
| "description": "Eclipse Temurin is a runtime provided by Eclipse Adoptium for general use across the Java ecosystem", | ||
| "homepage": "https://adoptium.net", | ||
| "version": "26.0.0-35", | ||
| "license": "GPL-2.0-only WITH Classpath-exception-2.0", | ||
| "architecture": { | ||
| "64bit": { | ||
| "url": "https://github.com/adoptium/temurin26-binaries/releases/download/jdk-26+35/OpenJDK26U-jdk_x64_windows_hotspot_26_35.zip", | ||
| "hash": "f36dbdfbd36401d6bf34c418e6405aedc17296cc72ec8335b5754d90e47aec64" | ||
| } | ||
| }, | ||
| "extract_dir": "jdk-26+35", | ||
| "env_add_path": "bin", | ||
| "env_set": { | ||
| "JAVA_HOME": "$dir" | ||
| }, | ||
| "checkver": { | ||
| "url": "https://api.adoptium.net/v3/assets/feature_releases/26/ga?jvm_impl=hotspot&heap_size=normal&os=windows&architecture=x64&image_type=jdk&project=jdk&vendor=eclipse&page_size=1&sort_order=DESC", | ||
| "script": [ | ||
| "$ver = (json_path $page $..version_data.semver).replace('+', '-')", | ||
| "$link = (json_path $page $..release_link).replace('%2B', '+')", | ||
| "$name = json_path $page $..binaries[0].package.name", | ||
| "Write-Output \"$ver $link $name\"" | ||
| ], | ||
| "regex": "(?<ver>.*?) https://github.com/(?<link>.*?)/tag/(?<tag>.*?) (?<name>(?<prefix>OpenJDK[\\dU]*-[dejkr]{3})_x64_(?<suffix>.*))", | ||
| "replace": "${ver}" | ||
| }, | ||
| "autoupdate": { | ||
| "architecture": { | ||
| "64bit": { | ||
| "url": "https://github.com/$matchLink/download/$matchTag/$matchName" | ||
| } | ||
| }, | ||
| "hash": { | ||
| "url": "$url.sha256.txt", | ||
| "regex": "^([a-fA-F0-9]+)\\s" | ||
| }, | ||
| "extract_dir": "$matchTag" | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| { | ||
| "description": "Eclipse Temurin is a runtime provided by Eclipse Adoptium for general use across the Java ecosystem", | ||
| "homepage": "https://adoptium.net", | ||
| "version": "26.0.0-35", | ||
| "license": "GPL-2.0-only WITH Classpath-exception-2.0", | ||
| "architecture": { | ||
| "64bit": { | ||
| "url": "https://github.com/adoptium/temurin26-binaries/releases/download/jdk-26+35/OpenJDK26U-jre_x64_windows_hotspot_26_35.zip", | ||
| "hash": "5b776c83068703c4f6b52545673161981a74262d9751aba7eaa87b38a19beb8d" | ||
| } | ||
| }, | ||
| "extract_dir": "jdk-26+35-jre", | ||
| "env_add_path": "bin", | ||
| "env_set": { | ||
| "JAVA_HOME": "$dir" | ||
| }, | ||
| "checkver": { | ||
| "url": "https://api.adoptium.net/v3/assets/feature_releases/26/ga?jvm_impl=hotspot&heap_size=normal&os=windows&architecture=x64&image_type=jre&project=jdk&vendor=eclipse&page_size=1&sort_order=DESC", | ||
| "script": [ | ||
| "$ver = (json_path $page $..version_data.semver).replace('+', '-')", | ||
| "$link = (json_path $page $..release_link).replace('%2B', '+')", | ||
| "$name = json_path $page $..binaries[0].package.name", | ||
| "Write-Output \"$ver $link $name\"" | ||
| ], | ||
| "regex": "(?<ver>.*?) https://github.com/(?<link>.*?)/tag/(?<tag>.*?) (?<name>(?<prefix>OpenJDK[\\dU]*-[dejkr]{3})_x64_(?<suffix>.*))", | ||
| "replace": "${ver}" | ||
| }, | ||
| "autoupdate": { | ||
| "architecture": { | ||
| "64bit": { | ||
| "url": "https://github.com/$matchLink/download/$matchTag/$matchName" | ||
| } | ||
| }, | ||
| "hash": { | ||
| "url": "$url.sha256.txt", | ||
| "regex": "^([a-fA-F0-9]+)\\s" | ||
| }, | ||
| "extract_dir": "$matchTag-jre" | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
For Adoptium API v3 responses used by Scoopcheckver, should.LTSbe stripped fromversion_data.semverto keep manifest versions normalized?💡 Result:
Yes—strip the
.LTSsuffix from Adoptium API v3’sversion_data.semverwhen generating the Scoop manifestversion, so the manifest stays “version-only” and consistent.semvercan include anLTSmarker as part of the build metadata (commonly seen like...+<build>.LTS), and downstream tooling commonly removes it when converting+→.(e.g.,.replace("+", ".").replace(".LTS","")).[1]version(pattern^[\w\.\-+_]+$), so leaving.LTSwouldn’t be invalid—but it’s not a real version increment and can make versions inconsistent/noisier across releases.[2]/v3/info/available_releases), rather than relying on embeddingLTSinto your package version.[3]Practical Scoop
checkver.replacenormalization: convert+to.and remove a trailing.LTSif present.Sources: [1], [2], [3]
🏁 Script executed:
Repository: ScoopInstaller/Java
Length of output: 644
🏁 Script executed:
Repository: ScoopInstaller/Java
Length of output: 1603
Align
checkverscript withtemurin25-jdk.jsonto normalize.LTSsuffix.The
checkverscript on line 20 is missing the.replace('.LTS', '')normalization present in the temurin25-jdk.json equivalent. This inconsistency can lead to non-canonical versions when Adoptium API responses include the.LTSsuffix inversion_data.semver.Proposed patch
📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
26 is no LTS version and as such there is no need to strip a suffix. See also other non-LTS versions like 24 or 23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@f-cramer, you're absolutely right — the.LTSsuffix in Adoptium'sversion_data.semveronly appears for LTS releases (e.g., Java 21, 17, 11), not for non-LTS versions like 23, 24, or 26. Thecheckverscript is correct as-is. I apologize for the noise.✏️ Learnings added