asdf-community / asdf-hashicorp

HashiCorp plugin for the asdf version manager

Home Page:https://github.com/asdf-vm/asdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asdf on M1 macs tries and fails to download a Darwin ARM version of terraform

paul-civitas opened this issue · comments

Downloading terraform version 0.12.29 from https://releases.hashicorp.com/terraform/0.12.29/terraform_0.12.29_darwin_arm.zip
Error: terraform version 0.12.29 not found

Hashicorp hasn't released new silicon versions of terraform yet, but the amd64 versions work fine due to Rosetta.

asdf should download arm versions if they're available (currently not released for any stable version) and fall back on a Rosetta compatible amd64 version if there's no arm version available.

currently not released for any stable version

This is actually not entirely true! Packer and Waypoint include darwin_arm64 builds for new releases today, and the other products are coming soon.

Closing this now that #31 is merged! Thanks for bringing this up.