More compatible Bazel rules for running Python tools and building Python projects
Apache License 2.0
86
stars
28
forks
source link
[Bug]: The python added to my rules_oci image is matching the machine architecture where bazel executed instead of the machine architecture of my rules_oci image #390
What happened?
I'm creating a multi-architecture OCI image which contains both an arm64 (aka aarch64) image and also one for x86_64 (also known as amd64).
When I run my container on an x86_64/amd64 machine, the problem is that my py_binary errors like this:
How can I have rules_py ensure that the python architecture that gets added to my rules_oci images matches the architecture of the oci image?
Version
Development (host) and target OS/architectures:
Output of
bazel --version
: bazel 7.2.1bazel_dep(name = "rules_python", version = "0.32.2") bazel_dep(name = "aspect_bazel_lib", version = "2.7.7") bazel_dep(name = "aspect_rules_py", version = "0.7.3")
How to reproduce
No response
Any other information?
No response