fix(opencode): install musl native packages for cross builds on Bun 1.4.4 (#58107)

This commit is contained in:
Luke Parker
2026-10-22 22:05:27 +10:00
committed by GitHub
Unverified
parent a8d8224f39
commit c0c7bae726
2 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -48,7 +48,8 @@ const targets = singleFlag
})
: allTargets
if (!skipInstall) await $`bun install --os="*" --cpu="*" @opentui/core@${pkg.dependencies["@opentui/core"]}`
// Bun 1.4.4 skips native packages for the other libc by default, but the musl targets need them.
if (!skipInstall) await $`bun install --os="*" --cpu="*" --libc="*" @opentui/core@${pkg.dependencies["@opentui/core"]}`
for (const item of targets) {
const target = [
+4 -3
View File
@@ -138,9 +138,10 @@ await $`rm -rf dist`
const binaries: Record<string, string> = {}
if (!skipInstall) {
await $`bun install --os="*" --cpu="*" @opentui/core@${pkg.dependencies["@opentui/core"]}`
await $`bun install --os="*" --cpu="*" @parcel/watcher@${pkg.dependencies["@parcel/watcher"]}`
await $`bun install --os="*" --cpu="*" @ff-labs/fff-bun@${pkg.dependencies["@ff-labs/fff-bun"]}`
// Bun 1.4.4 skips native packages for the other libc by default, but the musl targets need them.
await $`bun install --os="*" --cpu="*" --libc="*" @opentui/core@${pkg.dependencies["@opentui/core"]}`
await $`bun install --os="*" --cpu="*" --libc="*" @parcel/watcher@${pkg.dependencies["@parcel/watcher"]}`
await $`bun install --os="*" --cpu="*" --libc="*" @ff-labs/fff-bun@${pkg.dependencies["@ff-labs/fff-bun"]}`
}
for (const item of targets) {
const name = [