From e2d34eacc811cc517d25162eb9571557fd52b9b1 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Wed, 12 Jul 2023 22:09:57 +0800 Subject: [PATCH] Fix armv7 cache issue (#794) --- dist/setup/index.js | 2 +- src/distributions/base-distribution.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index f0445db..6800527 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -71675,7 +71675,7 @@ class BaseDistribution { return version; } findVersionInHostedToolCacheDirectory() { - return tc.find('node', this.nodeInfo.versionSpec, this.nodeInfo.arch); + return tc.find('node', this.nodeInfo.versionSpec, this.translateArchToDistUrl(this.nodeInfo.arch)); } getNodeJsVersions() { return __awaiter(this, void 0, void 0, function* () { diff --git a/src/distributions/base-distribution.ts b/src/distributions/base-distribution.ts index f7face1..ecd73c1 100644 --- a/src/distributions/base-distribution.ts +++ b/src/distributions/base-distribution.ts @@ -88,7 +88,11 @@ export default abstract class BaseDistribution { } 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 {