Skip to content

fix: treat android as linux when picking the file service - #275

Merged
zaldih merged 1 commit into
voidcosmos:mainfrom
kukirin-ui:fix/android-platform
Nov 1, 2026
Merged

zaldih merged 1 commit into
voidcosmos:mainfrom
kukirin-ui:fix/android-platform

Conversation

@kukirin-ui

Copy link
Copy Markdown
Contributor

On Termux, Node reports process.platform as 'android', so the OSServiceMap lookup comes back undefined and npkill dies at startup. This maps android to UnixFilesService, as suggested in the issue.

Added a test in npkill.test.ts that fakes process.platform = 'android' and checks the default file service is the unix one. It fails without the change. npm test and tsc pass, and eslint is clean on the changed files.

Closes #274

@kukirin-ui kukirin-ui closed this Nov 1, 2026
@zaldih zaldih reopened this Nov 1, 2026
@zaldih

zaldih commented Nov 1, 2026

Copy link
Copy Markdown
Member

Hi! Sorry for the silence on this one, that's on me.

The fix is spot on and I'd love to merge it, so I'm reopening this. Thank you so much for the patch and the test! :)

@zaldih
zaldih merged commit e3b5121 into voidcosmos:main Nov 1, 2026
1 check 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.

Support for Android / Termux (process.platform === 'android' )

2 participants