-
Notifications
You must be signed in to change notification settings - Fork 691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building and testing rules_docker on Apple Silicon #2036
Comments
I've worked around by installing the latest gazelle dependencies in my |
I came across this issue as well and fixed it as described in this thread. |
I just encountered this (on Mac M1 as well). From what I can tell, this looks like a regression in |
Yes, It works. |
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. |
This issue is still present |
I can confirm that the issue still present.
|
To be able to build, I needed to add the following to my .bazelrc:
After that, you can build but it. If this error pops up:
It indicates that the binary you're trying to run was built for a different architecture than the one you're currently using. Specifically, the binary was built for amd64 (aka x86_64), but your system is arm64. So, the solution is to use this for building and running:
Or just edit your .bazelrc ✨ |
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. |
🚀 feature request
Relevant Rules
Description
Currently, the Go targets in rules_docker cannot build on Apple Silicon machines:
As a result, end-to-end tests cannot run on Apple Silicon either:
Describe the solution you'd like
Probably involving upgrading rules_go and some bug fixing in
testing/e2e.sh
.Describe alternatives you've considered
Have you considered any alternative solutions or workarounds?The text was updated successfully, but these errors were encountered: