You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rules_buf fails on Linux ARM64 due to incorrect binary naming #112
rules_buf fails to download buf binaries on Linux ARM64 systems because it uses the wrong naming convention. The rules look for linux-arm64 but buf releases use Linux-aarch64 for Linux ARM64 platforms.
Environment
OS: Linux ARM64 (Android Termux)
Architecture: aarch64
Bazel version: 7.4.1
rules_buf version: 0.4.0
Error
WARNING: Download from https://github.com/bufbuild/buf/releases/download/v1.54.0/protoc-gen-buf-lint-linux-arm64 failed: class java.io.FileNotFoundException GET returned 404 Not Found
Root Cause
The buf project releases binaries with these naming conventions:
macOS ARM64: buf-Darwin-arm64
Linux ARM64: buf-Linux-aarch64
Linux x86_64: buf-Linux-x86_64
However, rules_buf tries to download using linux-arm64 instead of Linux-aarch64.
Activity
srikrsna-buf commentedon Jun 23, 2025
We already map
arm64toaarch64here, can you tell me thectx.os.nameandctx.os.archthat you see in your environment?jaeyeom commentedon Jun 24, 2025
@srikrsna-buf Thank you for your response. But somehow it's trying to download the wrong one.
I'm struggling to extract
ctx.os.nameandctx.os.archvalue. Could you help me how to extract them?uname -stells Linux. (with capital L)But even though, as you said, this should never be possible? But it happens... I'm using the latest release.
srikrsna-buf commentedon Jun 27, 2025
Hey @jaeyeom I tried to reproduce this in a linux arm64 virtual machine and it downloads using the correct url. Are you on the latest version?
jaeyeom commentedon Jun 27, 2025
Thank you for your effort. As you see in the environment section, it is 0.4.0.
I guess my environment (Termux) is a little different from some other environments. I'll try to debug it on my side.