Skip to content

Commit

Permalink
Add Darwin support and upgrade Terraform to 1.3.7. Also undo tab damage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Friedman committed Jan 11, 2023
1 parent ae19303 commit a24dc45
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions mk/tools/hashicorp/terraform.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
terraform_NAME ?= terraform
terraform_RELEASE ?= 1.3.1
terraform_FILENAME ?= $(terraform_NAME)_$(terraform_RELEASE)_linux_amd64.zip
terraform_DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(terraform_RELEASE)/$(terraform_FILENAME)
# We are assuming that all Mac users are on ARM and all Linux users are on AMD64.
# Override terraform_ARCH if not.
ifeq ($(local_OS),Darwin)
terraform_ARCH ?= arm64
else
terraform_ARCH ?= amd64
endif

terraform_NAME ?= terraform
terraform_RELEASE ?= 1.3.7
terraform_FILENAME ?= $(terraform_NAME)_$(terraform_RELEASE)_$(call lc,$(local_OS))_$(terraform_ARCH).zip
terraform_DOWNLOAD_URL ?= https://releases.hashicorp.com/terraform/$(terraform_RELEASE)/$(terraform_FILENAME)

# vi:syntax=makefile

0 comments on commit a24dc45

Please sign in to comment.