From 2e1e7c7d7ebc6ae3d7522096195bbe6ae355b4b0 Mon Sep 17 00:00:00 2001 From: "Ivan Zosimov (Akvelon INC)" Date: Thu, 24 Feb 2022 13:25:48 +0300 Subject: [PATCH] Make some small changes according to review points --- __tests__/setup-go.test.ts | 2 +- dist/setup/index.js | 2 +- src/main.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/setup-go.test.ts b/__tests__/setup-go.test.ts index db94e82..e20a03f 100644 --- a/__tests__/setup-go.test.ts +++ b/__tests__/setup-go.test.ts @@ -85,7 +85,7 @@ describe('setup-go', () => { }); logSpy.mockImplementation(line => { // uncomment to debug - process.stderr.write('log:' + line + '\n'); + //process.stderr.write('log:' + line + '\n'); }); dbgSpy.mockImplementation(msg => { // uncomment to see debug output diff --git a/dist/setup/index.js b/dist/setup/index.js index bf3f4df..2397dd7 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -3728,7 +3728,7 @@ function run() { yield cache_restore_1.restoreCache(packageManager, cacheDependencyPath); } // add problem matchers - const matchersPath = path_1.default.join(process.cwd(), 'matchers.json'); + const matchersPath = path_1.default.join(__dirname, '../..', 'matchers.json'); core.info(`##[add-matcher]${matchersPath}`); // output the version actually being used let goPath = yield io.which('go'); diff --git a/src/main.ts b/src/main.ts index dc09cc1..a3c66a0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -53,7 +53,7 @@ export async function run() { } // add problem matchers - const matchersPath = path.join(process.cwd(), 'matchers.json'); + const matchersPath = path.join(__dirname, '../..', 'matchers.json'); core.info(`##[add-matcher]${matchersPath}`); // output the version actually being used