mirror of
				https://github.com/actions/setup-go.git
				synced 2025-11-04 06:25:55 -05: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:
		@@ -23,7 +23,6 @@ export async function run() {
 | 
			
		||||
      const checkLatest = core.getBooleanInput('check-latest');
 | 
			
		||||
      const installDir = await installer.getGo(versionSpec, checkLatest, auth);
 | 
			
		||||
 | 
			
		||||
      core.exportVariable('GOROOT', installDir);
 | 
			
		||||
      core.addPath(path.join(installDir, 'bin'));
 | 
			
		||||
      core.info('Added go to the path');
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user