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

Add arch command for agnostic support of architecture in build command #228

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

mcncl
Copy link
Contributor

@mcncl mcncl commented Mar 14, 2023

The current command is incorrect if the user isn't using Linux AMD 64 architecture. This command will use the output of arch and fill the dir.

❯ arch
arm64

go build -o terraform-provider-buildkite . && \                                
  mkdir -p tf-proj/terraform.d/plugins/registry.terraform.io/buildkite/buildkite/0.5.0/$(arch)/ && \
  mv terraform-provider-buildkite tf-proj/terraform.d/plugins/registry.terraform.io/buildkite/buildkite/0.5.0/$(arch)/

ls -al tf-proj/terraform.d/plugins/registry.terraform.io/buildkite/buildkite/0.5.0/      
drwxr-xr-x - ben 15 Mar 09:58 arm64

@mcncl mcncl requested a review from jradtilbrook March 14, 2023 22:59
@mcncl mcncl changed the title Add arm64 command for agnostic support of architecture in build command Add arch command for agnostic support of architecture in build command Mar 14, 2023
@mcncl mcncl merged commit 01a7bd0 into main Mar 14, 2023
@mcncl mcncl deleted the bm/agnostic_command_arch branch March 14, 2023 23:10
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.

2 participants