@@ -103458,7 +103458,7 @@ function save(id) {
103458
103458
return __awaiter(this, void 0, void 0, function* () {
103459
103459
const packageManager = findPackageManager(id);
103460
103460
const matchedKey = core.getState(CACHE_MATCHED_KEY);
103461
- // Inputs are re-evaluted before the post action, so we want the original key used for restore
103461
+ // Inputs are re-evaluated before the post action, so we want the original key used for restore
103462
103462
const primaryKey = core.getState(STATE_CACHE_PRIMARY_KEY);
103463
103463
if (!primaryKey) {
103464
103464
core.warning('Error retrieving key from state.');
@@ -103865,13 +103865,13 @@ class JavaBase {
103865
103865
};
103866
103866
}
103867
103867
setJavaDefault(version, toolPath) {
103868
- const majorVerssion = version.split('.')[0];
103868
+ const majorVersion = version.split('.')[0];
103869
103869
core.exportVariable('JAVA_HOME', toolPath);
103870
103870
core.addPath(path_1.default.join(toolPath, 'bin'));
103871
103871
core.setOutput('distribution', this.distribution);
103872
103872
core.setOutput('path', toolPath);
103873
103873
core.setOutput('version', version);
103874
- core.exportVariable(`JAVA_HOME_${majorVerssion }_${this.architecture.toUpperCase()}`, toolPath);
103874
+ core.exportVariable(`JAVA_HOME_${majorVersion }_${this.architecture.toUpperCase()}`, toolPath);
103875
103875
}
103876
103876
}
103877
103877
exports.JavaBase = JavaBase;
@@ -103975,33 +103975,33 @@ class CorrettoDistribution extends base_installer_1.JavaBase {
103975
103975
const arch = this.architecture;
103976
103976
const imageType = this.packageType;
103977
103977
if (core.isDebug()) {
103978
- console.time('coretto -retrieve-available-versions');
103978
+ console.time('corretto -retrieve-available-versions');
103979
103979
}
103980
103980
const availableVersionsUrl = 'https://corretto.github.io/corretto-downloads/latest_links/indexmap_with_checksum.json';
103981
103981
const fetchCurrentVersions = yield this.http.getJson(availableVersionsUrl);
103982
103982
const fetchedCurrentVersions = fetchCurrentVersions.result;
103983
103983
if (!fetchedCurrentVersions) {
103984
103984
throw Error(`Could not fetch latest corretto versions from ${availableVersionsUrl}`);
103985
103985
}
103986
- const eligbleVersions = (_b = (_a = fetchedCurrentVersions === null || fetchedCurrentVersions === void 0 ? void 0 : fetchedCurrentVersions[platform]) === null || _a === void 0 ? void 0 : _a[arch]) === null || _b === void 0 ? void 0 : _b[imageType];
103987
- const availableVersions = this.getAvailableVersionsForPlatform(eligbleVersions );
103986
+ const eligibleVersions = (_b = (_a = fetchedCurrentVersions === null || fetchedCurrentVersions === void 0 ? void 0 : fetchedCurrentVersions[platform]) === null || _a === void 0 ? void 0 : _a[arch]) === null || _b === void 0 ? void 0 : _b[imageType];
103987
+ const availableVersions = this.getAvailableVersionsForPlatform(eligibleVersions );
103988
103988
if (core.isDebug()) {
103989
103989
this.printAvailableVersions(availableVersions);
103990
103990
}
103991
103991
return availableVersions;
103992
103992
});
103993
103993
}
103994
- getAvailableVersionsForPlatform(eligbleVersions ) {
103994
+ getAvailableVersionsForPlatform(eligibleVersions ) {
103995
103995
const availableVersions = [];
103996
- for (const version in eligbleVersions ) {
103997
- const availableVersion = eligbleVersions [version];
103996
+ for (const version in eligibleVersions ) {
103997
+ const availableVersion = eligibleVersions [version];
103998
103998
for (const fileType in availableVersion) {
103999
103999
const skipNonExtractableBinaries = fileType != util_1.getDownloadArchiveExtension();
104000
104000
if (skipNonExtractableBinaries) {
104001
104001
continue;
104002
104002
}
104003
104003
const availableVersionDetails = availableVersion[fileType];
104004
- const correttoVersion = this.getCorettoVersion (availableVersionDetails.resource);
104004
+ const correttoVersion = this.getCorrettoVersion (availableVersionDetails.resource);
104005
104005
availableVersions.push({
104006
104006
checksum: availableVersionDetails.checksum,
104007
104007
checksum_sha256: availableVersionDetails.checksum_sha256,
@@ -104017,13 +104017,13 @@ class CorrettoDistribution extends base_installer_1.JavaBase {
104017
104017
}
104018
104018
printAvailableVersions(availableVersions) {
104019
104019
core.startGroup('Print information about available versions');
104020
- console.timeEnd('coretto -retrieve-available-versions');
104020
+ console.timeEnd('corretto -retrieve-available-versions');
104021
104021
console.log(`Available versions: [${availableVersions.length}]`);
104022
104022
console.log(availableVersions.map(item => `${item.version}: ${item.correttoVersion}`).join(', '));
104023
104023
core.endGroup();
104024
104024
}
104025
104025
getPlatformOption() {
104026
- // Coretto has its own platform names so we need to map them
104026
+ // Corretto has its own platform names so we need to map them
104027
104027
switch (process.platform) {
104028
104028
case 'darwin':
104029
104029
return 'macos';
@@ -104033,7 +104033,7 @@ class CorrettoDistribution extends base_installer_1.JavaBase {
104033
104033
return process.platform;
104034
104034
}
104035
104035
}
104036
- getCorettoVersion (resource) {
104036
+ getCorrettoVersion (resource) {
104037
104037
const regex = /(\d+.+)\//;
104038
104038
const match = regex.exec(resource);
104039
104039
if (match === null) {
0 commit comments