Add RISC-V platform support in discoapi #112
Open
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.
Following issue sdkman/sdkman-cli#1321, I propose to add the
RISCV64
architecture to discoapi.riscv64
architecture toARCHITECTURE_MAP
insrc/main/java/io/foojay/api/distribution/Temurin.java
.getUrlForAvailablePkgs
method to includeriscv64
insrc/main/java/io/foojay/api/distribution/Temurin.java
.Summary
RISCV64
architecture in the architecture mapping, enhancing the capability to handle a broader range of architectures for package requests.Walkthrough
The changes introduced in this pull request involve the addition of a new architecture,
RISCV64
, to theARCHITECTURE_MAP
within theTemurin
class. This update includes mapping theRISCV64
architecture to the string representation "riscv64", allowing theTemurin
class to support RISC-V 64-bit architecture in URL parameters. No other modifications to logic or error handling were made, ensuring that the existing functionality of the class remains unchanged.Changes
RISCV64
toARCHITECTURE_MAP
, mapping to "riscv64".