mirror of https://github.com/actions/setup-go.git
				
				
				
			
							parent
							
								
									28b19b8019
								
							
						
					
					
						commit
						0859a18f70
					
				|  | @ -222,6 +222,8 @@ async function cacheWindowsDir( | ||||||
|     throw new Error(`Could not get cache folder paths.`); |     throw new Error(`Could not get cache folder paths.`); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |   core.info(`Found Cache Directory Paths: ${cacheDirectoryPaths}`); | ||||||
|  |    | ||||||
|   // replace cache directory path with actual cache directory path
 |   // replace cache directory path with actual cache directory path
 | ||||||
|   const actualCacheDirectoryPaths = cacheDirectoryPaths.map(path => { |   const actualCacheDirectoryPaths = cacheDirectoryPaths.map(path => { | ||||||
|     return { |     return { | ||||||
|  | @ -233,6 +235,7 @@ async function cacheWindowsDir( | ||||||
|   // iterate through actual cache directory paths and make links
 |   // iterate through actual cache directory paths and make links
 | ||||||
|   for (const cachePath of actualCacheDirectoryPaths) { |   for (const cachePath of actualCacheDirectoryPaths) { | ||||||
|     if (!fs.existsSync(cachePath.actualPath)) { |     if (!fs.existsSync(cachePath.actualPath)) { | ||||||
|  |       core.info(`Creating directory ${cachePath.actualPath}`); | ||||||
|       fs.mkdirSync(path.dirname(cachePath.actualPath), {recursive: true}); |       fs.mkdirSync(path.dirname(cachePath.actualPath), {recursive: true}); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Anton Troshin
						Anton Troshin