mirror of
				https://github.com/actions/setup-go.git
				synced 2025-10-31 23:43:41 +00:00 
			
		
		
		
	AzDev environment
This commit is contained in:
		
							parent
							
								
									60dde965e0
								
							
						
					
					
						commit
						90cd2f950f
					
				
							
								
								
									
										3
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -61466,7 +61466,8 @@ function installGoVersion(info, auth, arch) { | ||||
|         } | ||||
|         // for github hosted windows runner handle latency of OS drive
 | ||||
|         // by avoiding write operations to C:
 | ||||
|         const isHosted = process.env['RUNNER_ENVIRONMENT'] === 'github-hosted'; | ||||
|         const isHosted = process.env['RUNNER_ENVIRONMENT'] === 'github-hosted' || | ||||
|             process.env['AGENT_ISSELFHOSTED'] === '0'; | ||||
|         if (isWindows && isHosted && fs_1.default.existsSync('d:\\') && fs_1.default.existsSync('c:\\')) { | ||||
|             const defaultToolCacheRoot = process.env['RUNNER_TOOL_CACHE'] || ''; | ||||
|             const substitutedToolCacheRoot = defaultToolCacheRoot | ||||
|  | ||||
| @ -203,7 +203,9 @@ async function installGoVersion( | ||||
| 
 | ||||
|   // for github hosted windows runner handle latency of OS drive
 | ||||
|   // by avoiding write operations to C:
 | ||||
|   const isHosted = process.env['RUNNER_ENVIRONMENT'] === 'github-hosted'; | ||||
|   const isHosted = | ||||
|     process.env['RUNNER_ENVIRONMENT'] === 'github-hosted' || | ||||
|     process.env['AGENT_ISSELFHOSTED'] === '0'; | ||||
|   if (isWindows && isHosted && fs.existsSync('d:\\') && fs.existsSync('c:\\')) { | ||||
|     const defaultToolCacheRoot = process.env['RUNNER_TOOL_CACHE'] || ''; | ||||
|     const substitutedToolCacheRoot = defaultToolCacheRoot | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user