From 2bf9f715e18d29e53ff389e704fb6c51a765d633 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Tue, 23 Jun 2020 12:01:28 +0300 Subject: [PATCH] add debug line to check content of dir --- dist/index.js | 2 ++ src/main.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dist/index.js b/dist/index.js index fe5488eca..15bb57e42 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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(); diff --git a/src/main.ts b/src/main.ts index bf610342d..0d78d041b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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');