Unverified Commit d23aed3c authored by Dmitry Shibanov's avatar Dmitry Shibanov Committed by GitHub
Browse files

Add an error condition for an unstable Microsoft OpenJDK build (#263)

parent 8d222861
Loading
Loading
Loading
Loading
+3
Changes for dist/setup/index.js: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -13886,6 +13886,9 @@ class MicrosoftDistributions extends base_installer_1.JavaBase {
            if (this.architecture !== 'x64' && this.architecture !== 'aarch64') {
                throw new Error(`Unsupported architecture: ${this.architecture}`);
            }
            if (!this.stable) {
                throw new Error('Early access versions are not supported');
            }
            const availableVersionsRaw = yield this.getAvailableVersions();
            const opts = this.getPlatformOption();
            const availableVersions = availableVersionsRaw.map(item => ({
+5
Changes for src/distributions/microsoft/installer.ts: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -40,6 +40,11 @@ export class MicrosoftDistributions extends JavaBase {
    if (this.architecture !== 'x64' && this.architecture !== 'aarch64') {
      throw new Error(`Unsupported architecture: ${this.architecture}`);
    }

    if (!this.stable) {
      throw new Error('Early access versions are not supported');
    }

    const availableVersionsRaw = await this.getAvailableVersions();

    const opts = this.getPlatformOption();