File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/distributions/microsoft Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -13886,6 +13886,9 @@ class MicrosoftDistributions extends base_installer_1.JavaBase {
1388613886 if (this.architecture !== 'x64' && this.architecture !== 'aarch64') {
1388713887 throw new Error(`Unsupported architecture: ${this.architecture}`);
1388813888 }
13889+ if (!this.stable) {
13890+ throw new Error('Early access versions are not supported');
13891+ }
1388913892 const availableVersionsRaw = yield this.getAvailableVersions();
1389013893 const opts = this.getPlatformOption();
1389113894 const availableVersions = availableVersionsRaw.map(item => ({
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ export class MicrosoftDistributions extends JavaBase {
4040 if ( this . architecture !== 'x64' && this . architecture !== 'aarch64' ) {
4141 throw new Error ( `Unsupported architecture: ${ this . architecture } ` ) ;
4242 }
43+
44+ if ( ! this . stable ) {
45+ throw new Error ( 'Early access versions are not supported' ) ;
46+ }
47+
4348 const availableVersionsRaw = await this . getAvailableVersions ( ) ;
4449
4550 const opts = this . getPlatformOption ( ) ;
You can’t perform that action at this time.
0 commit comments