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