Skip to content

Commit

Permalink
try get path
Browse files Browse the repository at this point in the history
  • Loading branch information
e-korolevskii committed Jan 20, 2023
1 parent de201a0 commit 2e7414f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2e7414f

Please sign in to comment.