mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 08:04:00 +08:00 
			
		
		
		
	Fix armv7 cache issue (#794)
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -71675,7 +71675,7 @@ class BaseDistribution { | |||||||
|         return version; |         return version; | ||||||
|     } |     } | ||||||
|     findVersionInHostedToolCacheDirectory() { |     findVersionInHostedToolCacheDirectory() { | ||||||
|         return tc.find('node', this.nodeInfo.versionSpec, this.nodeInfo.arch); |         return tc.find('node', this.nodeInfo.versionSpec, this.translateArchToDistUrl(this.nodeInfo.arch)); | ||||||
|     } |     } | ||||||
|     getNodeJsVersions() { |     getNodeJsVersions() { | ||||||
|         return __awaiter(this, void 0, void 0, function* () { |         return __awaiter(this, void 0, void 0, function* () { | ||||||
|   | |||||||
| @@ -88,7 +88,11 @@ export default abstract class BaseDistribution { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   protected findVersionInHostedToolCacheDirectory() { |   protected findVersionInHostedToolCacheDirectory() { | ||||||
|     return tc.find('node', this.nodeInfo.versionSpec, this.nodeInfo.arch); |     return tc.find( | ||||||
|  |       'node', | ||||||
|  |       this.nodeInfo.versionSpec, | ||||||
|  |       this.translateArchToDistUrl(this.nodeInfo.arch) | ||||||
|  |     ); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   protected async getNodeJsVersions(): Promise<INodeVersion[]> { |   protected async getNodeJsVersions(): Promise<INodeVersion[]> { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Louis Lam
					Louis Lam