Skip to content
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

Using TARGETARCH to capture arch-appropriate terraform binaries #4

Merged
merged 2 commits into from
Mar 26, 2022
Merged

Using TARGETARCH to capture arch-appropriate terraform binaries #4

merged 2 commits into from
Mar 26, 2022

Conversation

AaronME
Copy link
Collaborator

@AaronME AaronME commented Mar 25, 2022

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:

  • Read and followed Crossplane's contribution process.
  • Run 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.

Signed-off-by: Aaron Eaton <aaron@upbound.io>
@AaronME AaronME requested a review from hasheddan March 25, 2022 22:43
@AaronME
Copy link
Collaborator Author

AaronME commented Mar 25, 2022

cc @hasheddan who is more familiar with the build steps here.

@AaronME
Copy link
Collaborator Author

AaronME commented Mar 25, 2022

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.

Signed-off-by: Aaron Eaton <aaron@upbound.io>
@AaronME AaronME requested a review from hasheddan March 25, 2022 23:39
Copy link
Member

@hasheddan hasheddan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@AaronME AaronME merged commit 4d68ac1 into crossplane-contrib:main Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants