bazelbuild / bazelbuild/bazelisk
Support musl alternative binary
- Dominant language
- Go
- Stars
- 2.7k
- Forks
- 424
- PR merge metrics
- No merged PRs in 30d
Description
bazelisk as a wrapper do support detect musl and download musl based bazel binary.
bazel do not support musl ci yet
- using standalone binary on Alpine [#5891](https://github.com/bazelbuild/bazel/issues/5891)
- musl support in CI [#1190](https://github.com/bazelbuild/continuous-integration/issues/1190)
```
ldd ~/.cache/bazelisk/downloads/https---mirrors-huaweicloud-com-bazel/bazel-4.2.2-linux-x86_64/bin/bazel
/lib64/ld-linux-x86-64.so.2 (0x7f7c5d88f000)
librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7f7c5d88f000)
libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f7c5d88f000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f7c5d88f000)
libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f7c5d88f000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f7c5d6ee000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f7c5d6d4000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f7c5d88f000)
Error relocating /root/.cache/bazelisk/downloads/https---mirrors-huaweicloud-com-bazel/bazel-4.2.2-linux-x86_64/bin/bazel: __realpath_chk: symbol not found
Error relocating /root/.cache/bazelisk/downloads/https---mirrors-huaweicloud-com-bazel/bazel-4.2.2-linux-x86_64/bin/bazel: __memcpy_chk: symbol not found
Error relocating /root/.cache/bazelisk/downloads/https---mirrors-huaweicloud-com-bazel/bazel-4.2.2-linux-x86_64/bin/bazel: __fdelt_chk: symbol not found
Error relocating /root/.cache/bazelisk/downloads/https---mirrors-huaweicloud-com-bazel/bazel-4.2.2-linux-x86_64/bin/bazel: __strdup: symbol not found
Error relocating /root/.cache/bazelisk/downloads/https---mirrors-huaweicloud-com-bazel/bazel-4.2.2-linux-x86_64/bin/bazel: __strncpy_chk: symbol not found
Error relocating /root/.cache/bazelisk/downloads/https---mirrors-huaweicloud-com-bazel/bazel-4.2.2-linux-x86_64/bin/bazel: __longjmp_chk: symbol not found
```
Maybe bazelisk or someone can produce github action based musl build for bazelisk ?
Alpine has testing bazel4 build https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/testing/bazel4
Contributor guide
Research direction
No file or test is named. Start by tracing the Bazelisk wrapper's platform-detection and binary-download paths, then review the linked Bazel and CI issues and Alpine's bazel4 build. Done means musl-based environments are detected and a compatible musl Bazel binary is downloaded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system, cli, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100