From 736f681405924a82c364540064c7a89ea672fa64 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Tue, 16 Mar 2021 18:01:38 +0100 Subject: [PATCH] Check for 1.x version --- dist/setup/index.js | 2 +- src/installer.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index ff891d8c..46a4e141 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -33725,7 +33725,7 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') { url += '&architecture=' + architecture; url += '&operating_system=' + operatingSystem; url += '&archive_type=' + archiveType; - if (version.includes('x') || version.includes('ea')) { + if (version.includes('x') || version.includes('ea') || version.startsWith('1.')) { url += '&latest=overall'; } const http = new httpm.HttpClient('bundles', undefined, { diff --git a/src/installer.ts b/src/installer.ts index 91366b84..2d158e34 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -254,7 +254,11 @@ async function getDownloadInfo( url += '&architecture=' + architecture; url += '&operating_system=' + operatingSystem; url += '&archive_type=' + archiveType; - if (version.includes('x') || version.includes('ea')) { + if ( + version.includes('x') || + version.includes('ea') || + version.startsWith('1.') + ) { url += '&latest=overall'; }