Closed AaronME closed 2 years ago
We are seeing errors running builds on Mac M1 machines. Investigating the builds on dockerhub we see that both the arm and amd images are pulling amd binaries.
Setting ARCH Build Arg from TARGETARCH to get proper binaries in each image.
I have:
make reviewable test
Built locally to confirm the change is non-breaking.
cc @hasheddan who is more familiar with the build steps here.
I was under the impression that TARGETARCH was a product of the build submodule. TIL it's a buildx var that the build submodule is manipulating.
Description of your changes
We are seeing errors running builds on Mac M1 machines. Investigating the builds on dockerhub we see that both the arm and amd images are pulling amd binaries.
Setting ARCH Build Arg from TARGETARCH to get proper binaries in each image.
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
Built locally to confirm the change is non-breaking.