mirror of
https://github.com/actions/setup-go.git
synced 2025-05-04 14:14:34 +00:00
Do not export GOROOT
This has not been necessary since [Go 1.9](https://go.dev/doc/go1.9#goroot) at least (although clunky to do so then) but definitely not since [Go 1.10](https://go.dev/doc/go1.10#goroot). This is cargo culting code that is more than 2 years out of date and runs into issues when multiple go versions are used in an action run. Signed-off-by: Manuel Mendez <mmendez534@gmail.com>
This commit is contained in:
@ -231,7 +231,7 @@ describe('setup-go', () => {
|
||||
expect(logSpy).toHaveBeenCalledWith(`Setup go version spec 1.13.0`);
|
||||
});
|
||||
|
||||
it('exports GOROOT', async () => {
|
||||
it('does not export any varibles', async () => {
|
||||
inputs['go-version'] = '1.13.0';
|
||||
inSpy.mockImplementation(name => inputs[name]);
|
||||
|
||||
@ -244,7 +244,7 @@ describe('setup-go', () => {
|
||||
});
|
||||
|
||||
await main.run();
|
||||
expect(vars).toBe({GOROOT: 'foo'});
|
||||
expect(vars).toStrictEqual({});
|
||||
});
|
||||
|
||||
it('finds a version of go already in the cache', async () => {
|
||||
|
Reference in New Issue
Block a user