From 2e7414f2765af099fec02a98d384846c2bb18389 Mon Sep 17 00:00:00 2001
From: Evgenii Korolevskii <e-korolevskii@github.com>
Date: Fri, 20 Jan 2023 01:27:11 +0100
Subject: [PATCH] try get path

---
 dist/setup/index.js | 3 ++-
 src/main.ts         | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dist/setup/index.js b/dist/setup/index.js
index 92e96e0..525b57c 100644
--- a/dist/setup/index.js
+++ b/dist/setup/index.js
@@ -63605,7 +63605,8 @@ function run() {
             if (cache && cache_utils_1.isCacheFeatureAvailable()) {
                 const packageManager = 'default';
                 const cacheDependencyPath = core.getInput('cache-dependency-path');
-                core.info(`Version spec is ${versionSpec}`);
+                let goPath = yield io.which('go');
+                core.info(`Version spec is ${versionSpec}, go path is ${goPath}`);
                 yield cache_restore_1.restoreCache(versionSpec, packageManager, cacheDependencyPath);
             }
             // add problem matchers
diff --git a/src/main.ts b/src/main.ts
index 588f3cb..400c788 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -59,7 +59,8 @@ export async function run() {
     if (cache && isCacheFeatureAvailable()) {
       const packageManager = 'default';
       const cacheDependencyPath = core.getInput('cache-dependency-path');
-      core.info(`Version spec is ${versionSpec}`)
+      let goPath = await io.which('go');
+      core.info(`Version spec is ${versionSpec}, go path is ${goPath}`)
       await restoreCache(versionSpec, packageManager, cacheDependencyPath);
     }