asdf-community / asdf-hashicorp

HashiCorp plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
234 stars 54 forks source link

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

Closed paul-civitas closed 3 years ago

paul-civitas commented 3 years ago
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.

radditude commented 3 years ago

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.

radditude commented 3 years ago

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