Skip to content

Commit a9bc2f4

Browse files
committed
allow musl loading
1 parent d9389d1 commit a9bc2f4

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

packages/turbo-repository/js/index.js

+11-13
Original file line numberDiff line numberDiff line change
@@ -85,20 +85,18 @@ switch (platform) {
8585
}
8686
break;
8787
case "linux":
88-
if (isMusl()) {
89-
throw new Error("musl not yet supported");
90-
} else {
91-
switch (arch) {
92-
case "x64":
93-
suffix = "linux-x64-gnu";
94-
break;
95-
case "arm64":
96-
suffix = "linux-arm64-gnu";
97-
break;
98-
default:
99-
throw new Error(`Unsupported architecture on Linux: ${arch}`);
100-
}
88+
const isMusl = isMusl();
89+
switch (arch) {
90+
case "x64":
91+
suffix = isMusl ? "linux-x64-musl" : "linux-x64-gnu";
92+
break;
93+
case "arm64":
94+
suffix = isMusl ? "linux-arm64-musl" : "linux-arm64-gnu";
95+
break;
96+
default:
97+
throw new Error(`Unsupported architecture on Linux: ${arch}`);
10198
}
99+
102100
break;
103101
default:
104102
throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`);

0 commit comments

Comments
 (0)