Repository navigation
Replies: 2 comments 1 reply
|
No one? Can I open a PR to fix that? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I develop on Termux but Biome is not supported
However, the released
biome-linux-arm64-muslbinary already runs unmodified on Termux. I tested 2.5.5 on an aarch64 device:format,lint,check --writeand the LSP daemon all work, since the binary is fully static.The only thing broken is the npm distribution. On Termux,
process.platformis"android", so none of the@biomejs/cli-*optional dependencies gets installed, and thePLATFORMSmap inpackages/@biomejs/biome/bin/biomehas noandroidentry, so the wrapper exits with "doesn't ship with prebuilt binaries for your platform".Suggested fix, with no new build or package:
"android"to theosfield of@biomejs/cli-linux-arm64-musl(and ofcli-linux-x64-muslto cover Termux on x86_64);androidentry to thePLATFORMSmap, pointing to the musl packages. The existingisMusl()detection can't be reused here: Termux'sldddoesn't mention musl.A native
aarch64-linux-androidrelease target would also work (it cross-compiles on a stock GitHub runner with the preinstalled NDK, and the binary runs on-device). You choose.I can open a PR if you're fine with one of these approaches and need help.
All reactions