Skip to content

Commit

Permalink
Fix armv7 cache issue (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
louislam authored Jul 12, 2023
1 parent ef9c88b commit e2d34ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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* () {
Expand Down
6 changes: 5 additions & 1 deletion src/distributions/base-distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<INodeVersion[]> {
Expand Down

0 comments on commit e2d34ea

Please sign in to comment.