Skip to content
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

Implement 'available' sub-command, add support for aarch64 #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DenWav
Copy link
Contributor

@DenWav DenWav commented Sep 26, 2021

The available subcommand queries the API to return a list of major JDK versions which could be downloaded and installed from the chosen host.

This includes a commit which moves some stuff around to make the above change easier, but also to provide some nicer error messages for unsupported systems or unavailable versions.

Adding aarch64 support allows this to work correctly on M1 macOS as well.

The situations this commit covers is:
    Invalid architecture
    Invalid OS

As well as providing a simpler message for when the requested JDK
version isn't found. This message still isn't as simple as I'd like, as
it gets wrapped in 2 other errors, but it's a lot better than before.
@DenWav DenWav force-pushed the available-command branch 2 times, most recently from ac75ac9 to 44c50a7 Compare September 26, 2021 07:05
This will include the platform OS and architecture in the API call so
only actually valid versions will be shown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant