Skip to content

fix(cli): install musl native packages for cross builds on Bun 1.4.4 - #58398

Merged
simonklee merged 1 commit into
anomalyco:devfrom
Hona:cli-musl-libc
Oct 23, 2026
Merged

simonklee merged 1 commit into
anomalyco:devfrom
Hona:cli-musl-libc

Conversation

@Hona

@Hona Hona commented Oct 23, 2026

Copy link
Copy Markdown
Member

build-cli fails on dev since #58380 (run):

error: Could not resolve: "@opentui/core-linux-arm64-musl". Maybe you need to "bun install"?
-  await $`bun install --os="*" --cpu="*" @opentui/core@…
+  await $`bun install --os="*" --cpu="*" --libc="*" @opentui/core@…
Bun 1.4.4 on glibc musl packages installed
--os=* --cpu=* none
--os=* --cpu=* --libc=* core-linux-arm64-musl, core-linux-x64-musl

Blocks the next V2 release.

Copilot AI balanced review requested due to automatic review settings October 23, 2026 08:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I reproduced the build-cli failure on the base: with Bun 1.4.4 on glibc, --target=opencode-linux-arm64-musl fails with Could not resolve: "@opentui/core-linux-arm64-musl". With this change the same target builds successfully. Without --libc=*, the @opencode-ai/pty-linux-*-musl packages were also skipped, and this flag installs them too. tsc -b in packages/cli passes.

The public API is unchanged; only the build script is touched.

@simonklee
simonklee merged commit 74f8d48 into anomalyco:dev Oct 23, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants