From 630895f2486b958207df0bc8eccc387de08d6731 Mon Sep 17 00:00:00 2001
From: Aparna Jyothi <aparnajyothi-y@github.com>
Date: Thu, 30 Jan 2025 15:51:00 +0530
Subject: [PATCH] checklatest

---
 dist/setup/index.js                                  | 3 +++
 src/distributions/official_builds/official_builds.ts | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/dist/setup/index.js b/dist/setup/index.js
index 0111cbdd..d8b092af 100644
--- a/dist/setup/index.js
+++ b/dist/setup/index.js
@@ -100666,11 +100666,14 @@ class OfficialBuilds extends base_distribution_1.default {
     downloadFromMirrorURL() {
         return __awaiter(this, void 0, void 0, function* () {
             const nodeJsVersions = yield this.getNodeJsVersions();
+            core.info('versions from nodeJSVersions' + nodeJsVersions);
             const versions = this.filterVersions(nodeJsVersions);
+            core.info('versions' + versions);
             const evaluatedVersion = this.evaluateVersions(versions);
             if (this.nodeInfo.checkLatest) {
                 const evaluatedVersion = yield this.findVersionInDist(nodeJsVersions);
                 this.nodeInfo.versionSpec = evaluatedVersion;
+                core.info('versionSpec' + this.nodeInfo.versionSpec);
             }
             if (!evaluatedVersion) {
                 throw new Error(`Unable to find Node version '${this.nodeInfo.versionSpec}' for platform ${this.osPlat} and architecture ${this.nodeInfo.arch}.`);
diff --git a/src/distributions/official_builds/official_builds.ts b/src/distributions/official_builds/official_builds.ts
index 22eab867..caabd281 100644
--- a/src/distributions/official_builds/official_builds.ts
+++ b/src/distributions/official_builds/official_builds.ts
@@ -315,12 +315,17 @@ export default class OfficialBuilds extends BaseDistribution {
 
   protected async downloadFromMirrorURL() {
     const nodeJsVersions = await this.getNodeJsVersions();
+    core.info('versions from nodeJSVersions'+nodeJsVersions);
     const versions = this.filterVersions(nodeJsVersions);
+    core.info('versions'+versions);
+
     const evaluatedVersion = this.evaluateVersions(versions);
 
     if (this.nodeInfo.checkLatest) {
       const evaluatedVersion = await this.findVersionInDist(nodeJsVersions);
       this.nodeInfo.versionSpec = evaluatedVersion;
+      core.info('versionSpec'+this.nodeInfo.versionSpec);
+
     }
 
     if (!evaluatedVersion) {