Skip to content

Commit 2e7414f

Browse files
committed
try get path
1 parent de201a0 commit 2e7414f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/setup/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -63605,7 +63605,8 @@ function run() {
6360563605
if (cache && cache_utils_1.isCacheFeatureAvailable()) {
6360663606
const packageManager = 'default';
6360763607
const cacheDependencyPath = core.getInput('cache-dependency-path');
63608-
core.info(`Version spec is ${versionSpec}`);
63608+
let goPath = yield io.which('go');
63609+
core.info(`Version spec is ${versionSpec}, go path is ${goPath}`);
6360963610
yield cache_restore_1.restoreCache(versionSpec, packageManager, cacheDependencyPath);
6361063611
}
6361163612
// add problem matchers

src/main.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ export async function run() {
5959
if (cache && isCacheFeatureAvailable()) {
6060
const packageManager = 'default';
6161
const cacheDependencyPath = core.getInput('cache-dependency-path');
62-
core.info(`Version spec is ${versionSpec}`)
62+
let goPath = await io.which('go');
63+
core.info(`Version spec is ${versionSpec}, go path is ${goPath}`)
6364
await restoreCache(versionSpec, packageManager, cacheDependencyPath);
6465
}
6566

0 commit comments

Comments
 (0)