tfversion icon indicating copy to clipboard operation
tfversion copied to clipboard

Legacy Terraform versions cannot be installed

Open ChrisTerBeke opened this issue 1 year ago • 2 comments

Versions before v1 are hosted under a different URL. Currently if you run for example tfversion install 0.14.10 it will result in a HTTP error and tfversion exits.

Attempt 1 failed: failed to download Terraform terraform_0.14.10_darwin_arm64.zip: 404 Not Found

ChrisTerBeke avatar Oct 04 '24 12:10 ChrisTerBeke

Hi Chris, I had a look at this issue. The older versions of Terraform are hosted at the same URL as the others, however these versions of Terraform might not have ARM builds for Macs. I believe this is what you encountered, and I've raised a PR to resolve this by retrying for an AMD64 build in case no ARM build is available on the Darwin platform.

With the patch I was successfully able to install the version of Terraform you mentioned:

tfversion install 0.14.10
Attempt 1 failed: failed to download Terraform terraform_0.14.10_darwin_arm64.zip: 404 Not Found
ARM build not found, retrying with amd64 build
Terraform version 0.14.10 downloaded successfully

mmourick avatar Oct 24 '24 20:10 mmourick

As far as I recall, we began publishing Darwin ARM64 builds starting with Terraform Core 1.1.0.

bschaatsbergen avatar Oct 24 '24 21:10 bschaatsbergen