3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-24 11:09:33 +01:00

Fix armv7 cache issue (#794)

This commit is contained in:
Louis Lam 2023-07-12 22:09:57 +08:00 committed by GitHub
parent ef9c88b169
commit e2d34eacc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

2
dist/setup/index.js vendored
View file

@ -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* () {

View file

@ -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[]> {