diff --git a/__tests__/setup-go.test.ts b/__tests__/setup-go.test.ts index a0018394c..936880466 100644 --- a/__tests__/setup-go.test.ts +++ b/__tests__/setup-go.test.ts @@ -243,7 +243,7 @@ describe('setup-go', () => { }); await main.run(); - expect(vars).toBe({'GOROOT': 'foo'}); + expect(vars).toBe({}); }); it('finds a version of go already in the cache', async () => { diff --git a/src/main.ts b/src/main.ts index 2d90b2fe7..29ae2b62f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,7 +26,6 @@ export async function run() { const installDir = await installer.getGo(versionSpec, stable, auth); - core.exportVariable('GOROOT', installDir); core.addPath(path.join(installDir, 'bin')); core.info('Added go to the path');