Bazel: rules_multirun Python dependency prevents local bazel run with remote execution #869
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar#869
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub.
Original GitHub issue: #2517
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/2517
Original created: 2026-01-26T05:32:53Z
Problem
When using remote execution (
--config=remote) from macOS to build Linux Docker images,bazel run //docker/images:push_allfails with:The same issue affects individual
oci_pushtargets (they embed Linuxjqbinary).Root Cause
rules_multirunis implemented in Python. When using remote execution:rules_multirun) embed Linux Python in runfilesbazel runexecutes locally on macOSThis is a known limitation of Bazel's platform model when host ≠ execution platform.
Upstream References
The maintainer is "generally supportive" of switching to Go but PR #57 has been waiting for review. The PR also has a bug where
go_sdkextension isn't properly guarded as dev_dependency.Current Workarounds
scripts/push_all_images.sh- Wrapper script that explains the limitationmake build/bazel build //...works with remote executionWhat Still Works
make buildbazel build //docker/images:...bazel run //docker/images:push_allbazel runfrom Linux CIPotential Solutions
Files with Documentation
MODULE.bazel- Comment explaining the issue.bazelrc- Note aboutbazel runlimitation with remote executionscripts/push_all_images.sh- Workaround script for CIMakefile- Updatedpush_alltargetLabels
bazeltoolchainwontfix(for now)