Skip to content

Commit

Permalink
add debug line to check content of dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Shibanov committed Jun 23, 2020
1 parent 4c4f1c6 commit 2bf9f71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2530,6 +2530,8 @@ function run() {
const installDir = yield installer.getGo(versionSpec, stable, auth);
console.log(`installDir is ${installDir}`);
core.exportVariable('GOROOT', installDir);
const content = fs_1.default.readdirSync(installDir);
console.log(content);
core.addPath(path_1.default.join(installDir, 'bin'));
console.log('Added go to the path');
let added = addBinToPath();
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export async function run() {

console.log(`installDir is ${installDir}`)
core.exportVariable('GOROOT', installDir);
const content = fs.readdirSync(installDir);
console.log(content);
core.addPath(path.join(installDir, 'bin'));
console.log('Added go to the path');

Expand Down

0 comments on commit 2bf9f71

Please sign in to comment.