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
The issue seems relate to the wrong python interpreter path and is not platform agnostic when calling venv.
I tried the following command with Mac as a workaround: ❯ bazel build //... --sandbox_debug --platform=//hello_world:x86_64_linux
it ran into the same issue (different error) and seems the current implementation of py_binary breaks the cross-platform build.
Version
Development (host) and target OS/architectures:
host: Mac with M1
target OS/arch: linux
### Type of change
- Refactor (a code change that neither fixes a bug or adds a new
feature)
### Test plan
- Covered by existing test cases
#233 was mentioned as a fix for #218 but #233 includes a dependency on
openssl. This dependency on openssl makes building containers on MacOS
difficult as we then need to cross build openssl. I see that there was
an attempt to remove the openssl dependency `rattler_installs_packages`
however, `native-tls` is in the default features and is the only default
feature. Disabling `default-features` removes the dependency on openssl.
---------
Co-authored-by: Alex Eagle <[email protected]>
What happened?
When we use
py_binary
to build docker images with rules_oci, we couldn't build the tarball for ubuntu images. The error log:I'm using https://github.com/aspect-build/bazel-examples/tree/main/oci_python_image to reproduce the error.
The issue seems relate to the wrong python interpreter path and is not platform agnostic when calling venv.
I tried the following command with Mac as a workaround:
❯ bazel build //... --sandbox_debug --platform=//hello_world:x86_64_linux
it ran into the same issue (different error) and seems the current implementation of py_binary breaks the cross-platform build.
Version
Development (host) and target OS/architectures:
host: Mac with M1
target OS/arch: linux
Output of
bazel --version
:bazel 6.2.0
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:the same as the example: https://github.com/aspect-build/bazel-examples
Language(s) and/or frameworks involved:
How to reproduce
build the example "oci_python_image" with Mac
Any other information?
No response
The text was updated successfully, but these errors were encountered: