Repository navigation
fix(cli): install musl native packages for cross builds on Bun 1.4.4 - #58398
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
build-clifails ondevsince #58380 (run):"libc": "musl"(0.6.6 did not).v1:--os=* --cpu=*--os=* --cpu=* --libc=*core-linux-arm64-musl,core-linux-x64-muslBlocks the next V2 release.