Make some small changes according to review points

This commit is contained in:
Ivan Zosimov (Akvelon INC) 2022-02-24 13:25:48 +03:00
parent b50606f375
commit 2e1e7c7d7e
3 changed files with 3 additions and 3 deletions

View file

@ -85,7 +85,7 @@ describe('setup-go', () => {
}); });
logSpy.mockImplementation(line => { logSpy.mockImplementation(line => {
// uncomment to debug // uncomment to debug
process.stderr.write('log:' + line + '\n'); //process.stderr.write('log:' + line + '\n');
}); });
dbgSpy.mockImplementation(msg => { dbgSpy.mockImplementation(msg => {
// uncomment to see debug output // uncomment to see debug output

2
dist/setup/index.js vendored
View file

@ -3728,7 +3728,7 @@ function run() {
yield cache_restore_1.restoreCache(packageManager, cacheDependencyPath); yield cache_restore_1.restoreCache(packageManager, cacheDependencyPath);
} }
// add problem matchers // 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}`); core.info(`##[add-matcher]${matchersPath}`);
// output the version actually being used // output the version actually being used
let goPath = yield io.which('go'); let goPath = yield io.which('go');

View file

@ -53,7 +53,7 @@ export async function run() {
} }
// add problem matchers // add problem matchers
const matchersPath = path.join(process.cwd(), 'matchers.json'); const matchersPath = path.join(__dirname, '../..', 'matchers.json');
core.info(`##[add-matcher]${matchersPath}`); core.info(`##[add-matcher]${matchersPath}`);
// output the version actually being used // output the version actually being used