mirror of
				https://github.com/actions/setup-go.git
				synced 2025-11-04 09:16:23 +00:00 
			
		
		
		
	fix version dir
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -4601,7 +4601,7 @@ function downloadGo(versionSpec, stable) {
 | 
				
			|||||||
                core_1.debug(`extracted to ${extPath}`);
 | 
					                core_1.debug(`extracted to ${extPath}`);
 | 
				
			||||||
                // extracts with a root folder that matches the fileName downloaded
 | 
					                // extracts with a root folder that matches the fileName downloaded
 | 
				
			||||||
                const toolRoot = path.join(extPath, 'go');
 | 
					                const toolRoot = path.join(extPath, 'go');
 | 
				
			||||||
                toolPath = yield tc.cacheDir(toolRoot, 'go', match.version);
 | 
					                toolPath = yield tc.cacheDir(toolRoot, 'go', makeSemver(match.version));
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        catch (error) {
 | 
					        catch (error) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,7 +33,7 @@ export async function downloadGo(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      // extracts with a root folder that matches the fileName downloaded
 | 
					      // extracts with a root folder that matches the fileName downloaded
 | 
				
			||||||
      const toolRoot = path.join(extPath, 'go');
 | 
					      const toolRoot = path.join(extPath, 'go');
 | 
				
			||||||
      toolPath = await tc.cacheDir(toolRoot, 'go', match.version);
 | 
					      toolPath = await tc.cacheDir(toolRoot, 'go', makeSemver(match.version));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  } catch (error) {
 | 
					  } catch (error) {
 | 
				
			||||||
    throw new Error(`Failed to download version ${versionSpec}: ${error}`);
 | 
					    throw new Error(`Failed to download version ${versionSpec}: ${error}`);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user