docs: note Termux/Android SIGSYS crash and build-from-source workaround
Addresses #506.
What
Adds a Troubleshooting entry to install.md for Termux/Android, where the prebuilt binaries and go install …@latest crash on startup with SIGSYS: bad system call — even for basecamp --help.
Why (root cause)
atotto/clipboard — an indirect dependency pulled in by the TUI via charm.land/bubbles/v2/textinput — calls exec.LookPath in its package init(). That triggers the faccessat2 syscall, which Android's seccomp policy kills with SIGSYS before main runs, so nothing the CLI does can catch it.
Why docs-only (no code fix)
There is no go install-safe local fix:
- Bump the dependency —
bubbles/v2 v2.1.0(already our version) is the latest and still importsatotto/clipboard. replacedirective to lazy-load clipboard —go install pkg@latesterrors when the target module's go.mod containsreplace/excludedirectives, so this would break installs on every platform.- Build-tag out the TUI —
internal/tuiis wired into the presenter/output/root render paths and many everyday commands; it can't be cleanly excluded.
The durable fix belongs upstream (making textinput's clipboard init lazy). This PR documents the one method that works today — building from source with Termux's patched Go toolchain, which sidesteps the blocked syscall (confirmed by the reporter in #506).
Change
Docs only — one new Troubleshooting entry in install.md.
Summary by cubic
Added a Troubleshooting entry to install.md for Termux/Android where prebuilt binaries and go install github.com/basecamp/basecamp-cli/cmd/basecamp@latest crash on startup with SIGSYS: bad system call. It explains the cause and shows a build-from-source workaround using Termux’s Go, with the full go install command and a note to adjust the go line in go.mod if your Termux Go is older.