From b712ff58984da8ccb9b9c0cad82832478eee8632 Mon Sep 17 00:00:00 2001 From: Jitender Pal Singh Date: Thu, 9 Jul 2026 12:26:33 +0530 Subject: [PATCH] Add debug logs for expected and actual Node versions --- dist/setup/index.js | 2 ++ src/distributions/official_builds/official_builds.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/setup/index.js b/dist/setup/index.js index c68588b1..40909bb8 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -79995,6 +79995,8 @@ class OfficialBuilds extends base_distribution_1.default { catch (err) { throw new Error(`Node installation failed. Node may not be installed or not on PATH: ${err.message}`); } + core.debug(`Expected Node version: ${expectedVersion}`); + core.debug(`Actual Node version: ${actualVersion}`); if (actualVersion !== expectedVersion) { throw new Error(`Node ${expectedVersion} installation failed, likely due to an incomplete or corrupted download.`); } diff --git a/src/distributions/official_builds/official_builds.ts b/src/distributions/official_builds/official_builds.ts index 72b70901..3ce10723 100644 --- a/src/distributions/official_builds/official_builds.ts +++ b/src/distributions/official_builds/official_builds.ts @@ -342,6 +342,8 @@ export default class OfficialBuilds extends BaseDistribution { `Node installation failed. Node may not be installed or not on PATH: ${(err as Error).message}` ); } + core.debug(`Expected Node version: ${expectedVersion}`); + core.debug(`Actual Node version: ${actualVersion}`); if (actualVersion !== expectedVersion) { throw new Error( `Node ${expectedVersion} installation failed, likely due to an incomplete or corrupted download.`