GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — Add an error condition for an unstable Microsoft OpenJDK build by dmitry-shibanov · Pull Request #263 · actions/setup-java Conversation
|
|
Hello everyone. Could you please take a look at these changes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
|
|
||
| if (!this.stable) { | ||
| throw new Error('Unstable versions are not supported'); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
What's the value of adding a special error message here? We only have two hardcoded versions currently. If someone requests something that's not one of those versions, we'll raise an error and show the available versions (lines 62-70 of this file).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We can get ga/ea versions of java releases, but Microsoft OpenJDK builds do not have ea versions. If we pass 11-ea in java-version input, the action won't throw an error and install stable version, because the action normalizes version to 11 and set stable to the false value. For now I think we should write a condition to throw an error for ea builds.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| throw new Error('Unstable versions are not supported'); | |
| throw new Error('Early access versions are not supported'); |
While it's true that it's not a stable version, "unstable" has a stronger denotation.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done. Thank you.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.