Skip to content

Commit

Permalink
fix: add missing arch to nativePrebuildInstall cache (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Lando <daniel.sorridi@gmail.com>
  • Loading branch information
segevfiner and robertsLando committed Dec 5, 2023
1 parent cf43772 commit cd89e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function nativePrebuildInstall(target: Target, nodeFile: string) {
throw new Error(`Couldn't find node version, instead got: ${nodeVersion}`);
}

const nativeFile = `${nodeFile}.${target.platform}.${nodeVersion}`;
const nativeFile = `${nodeFile}.${target.platform}.${target.arch}.${nodeVersion}`;

if (fs.existsSync(nativeFile)) {
return nativeFile;
Expand Down

0 comments on commit cd89e83

Please sign in to comment.