feat: add RISC-V 64-bit platform support#1496
Open
gounthar wants to merge 1 commit intosdkman:masterfrom
Open
Conversation
Add riscv64 to the platform map in UnixUtils, resolving to linuxriscv64 platform string. Include test fixtures (tar.gz archives and hook scripts) and 4 Cucumber scenarios covering install, default install, failed download, and unsupported version on RISC-V. Update the machine step definition to synchronize the platform descriptor file with the stubbed architecture, enabling correct WireMock routing for non-host platforms. Fixes sdkman#1321
This was referenced Feb 6, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
riscv64→linuxriscv64mapping to the test platform map inUnixUtils.groovylinuxriscv64var/platformwith the stubbed architecture, enabling correct WireMock API routing for non-host platformsMotivation
RISC-V 64-bit (
riscv64) hardware is increasingly available, but SDKMAN classifies it as "Exotic", preventing Java candidate listing/installation. While the full fix requires changes to the installer (get.sdkman.io) and backend (DISCO API), this PR prepares the CLI's test infrastructure so that:linuxriscv64platform stringFixes #1321
Test plan
./gradlew clean test --infopasses on Linux x86_64Changes
UnixUtils.groovy"riscv64": "linuxriscv64"to Linux platform mapinitialisation_steps.groovyvar/platformfile when machine architecture is setjava_installation.featurejdk-8.0.{111,101}-linuxriscv64.tar.gzpost_hook_java_8.0.{111,101}_linuxriscv64.sh