File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,10 @@ export async function getNode(
107
107
downloadPath = await tc . downloadTool ( info . downloadUrl ) ;
108
108
} catch ( err ) {
109
109
if ( err instanceof tc . HTTPError && err . httpStatusCode == 404 ) {
110
- return await acquireNodeFromFallbackLocation ( info . resolvedVersion ) ;
110
+ return await acquireNodeFromFallbackLocation (
111
+ info . resolvedVersion ,
112
+ info . arch
113
+ ) ;
111
114
}
112
115
113
116
throw err ;
@@ -317,10 +320,11 @@ export async function getVersionsFromDist(): Promise<INodeVersion[]> {
317
320
// Note also that the files are normally zipped but in this case they are just an exe
318
321
// and lib file in a folder, not zipped.
319
322
async function acquireNodeFromFallbackLocation (
320
- version : string
323
+ version : string ,
324
+ arch : string = os . arch ( )
321
325
) : Promise < string > {
322
326
let osPlat : string = os . platform ( ) ;
323
- let osArch : string = translateArchToDistUrl ( os . arch ( ) ) ;
327
+ let osArch : string = translateArchToDistUrl ( arch ) ;
324
328
325
329
// Create temporary folder to download in to
326
330
const tempDownloadFolder : string =
You can’t perform that action at this time.
0 commit comments