Skip to content

Support Android npm launcher#1979

Merged
j178 merged 1 commit into
masterfrom
android-npm
Apr 21, 2026
Merged

Support Android npm launcher#1979
j178 merged 1 commit into
masterfrom
android-npm

Conversation

@j178

@j178 j178 commented Apr 21, 2026

Copy link
Copy Markdown
Owner

Allow the existing @j178/prek-linux-arm64-musl package to cover Android/Termux, and omit package-level libc metadata for that shared package so npm can install it before the launcher selects the static musl binary.

Closes #1977

Copilot AI review requested due to automatic review settings April 21, 2026 15:25
@j178 j178 added the bug Something isn't working label Apr 21, 2026 — with ChatGPT Codex Connector
@codecov

codecov Bot commented Apr 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.23%. Comparing base (1981c51) to head (7cc29e2).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1979   +/-   ##
=======================================
  Coverage   92.23%   92.23%           
=======================================
  Files         116      116           
  Lines       23338    23338           
=======================================
  Hits        21525    21525           
  Misses       1813     1813           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Pull request overview

Adds Android/Termux support to the npm distribution by introducing an Android arm64 platform package that reuses the existing static aarch64-unknown-linux-musl release artifact, enabling the wrapper launcher to resolve a compatible binary when process.platform === "android".

Changes:

  • Add a new PlatformSpec entry for @j178/prek-android-arm64.
  • Reuse the prek-aarch64-unknown-linux-musl.tar.gz archive for Android/arm64 packaging.
  • Ensure the wrapper’s generated platforms.json and optionalDependencies include the new Android package.

Comment thread scripts/build-npm-packages.py Outdated
@j178 j178 changed the title Fix Android npm package Support Android npm launcher Apr 21, 2026
@j178 j178 merged commit 7f44e09 into master Apr 21, 2026
55 checks passed
@j178 j178 deleted the android-npm branch April 21, 2026 17:00
gtbuchanan added a commit to gtbuchanan/tooling that referenced this pull request Apr 30, 2026
0.3.11 ships j178/prek#1979 + j178/prek#1982 — Android/Termux launcher
support. The pre-commit fallback existed only because prek's binary
couldn't load on Bionic; with the launcher fix it does.

A separate uv-on-Bionic quirk remains: prek's bundled uv aborts
during managed-Python discovery because libc detection fails on
Bionic. Termux contributors should set `UV_LIBC=none` so uv falls
back to system Python. Documented in the root README's new
"Termux/Android setup" section.

Closes #51.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm launcher rejects Android/Termux: "Unsupported platform: android arm64"

2 participants