ripgrep fails to download in an aarch64 linux container due to requesting a non-existent musl-based build #425

Closed
opened 2026-02-16 17:26:40 -05:00 by yindo · 2 comments
Owner

Originally created by @irth on GitHub (Jul 1, 2025).

Originally assigned to: @thdxr on GitHub.

Hi, I run opencode in a Debian based container (on macOS, thru Docker Desktop).

opencode tries to download ripgrep, but assumes a musl build is available (hardcoded for Linux @ https://github.com/sst/opencode/blob/e99bdcefac44db9251ac08b515a6b1f5af42610c/packages/opencode/src/file/ripgrep.ts#L90 )

this is, however, not true - there's no aarch64 musl build, only GNU libc (which, I assume, should work on Debian if opencode knew it should download it

ERROR 2025-07-01T22:37:56 +160ms service=default url=https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-aarch64-unknown-linux-musl.tar.gz status=404 name=RipgrepDownloadFailedError message=RipgrepDownloadFailedError fatal
Error: Unexpected error, check log file at  for more details
ERROR 2025-07-01T22:37:56 +1ms service=default e=RipgrepDownloadFailedError rejection
Originally created by @irth on GitHub (Jul 1, 2025). Originally assigned to: @thdxr on GitHub. Hi, I run `opencode` in a Debian based container (on macOS, thru Docker Desktop). `opencode` tries to download `ripgrep`, but assumes a `musl` build is available (hardcoded for Linux @ https://github.com/sst/opencode/blob/e99bdcefac44db9251ac08b515a6b1f5af42610c/packages/opencode/src/file/ripgrep.ts#L90 ) this is, however, not true - there's no aarch64 musl build, only GNU libc (which, I assume, should work on Debian if `opencode` knew it should download it ``` ERROR 2025-07-01T22:37:56 +160ms service=default url=https://github.com/BurntSushi/ripgrep/releases/download/14.1.1/ripgrep-14.1.1-aarch64-unknown-linux-musl.tar.gz status=404 name=RipgrepDownloadFailedError message=RipgrepDownloadFailedError fatal Error: Unexpected error, check log file at for more details ERROR 2025-07-01T22:37:56 +1ms service=default e=RipgrepDownloadFailedError rejection ```
yindo closed this issue 2026-02-16 17:26:40 -05:00
Author
Owner

@thdxr commented on GitHub (Jul 1, 2025):

can you check in v0.1.174

@thdxr commented on GitHub (Jul 1, 2025): can you check in v0.1.174
Author
Owner

@irth commented on GitHub (Jul 2, 2025):

yup, this fixed it. thanks!

@irth commented on GitHub (Jul 2, 2025): yup, this fixed it. thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#425