tfutils / tfenv

Terraform version manager
MIT License
4.51k stars 454 forks source link

Error while installing terraform version #407

Open ashraf133 opened 1 year ago

ashraf133 commented 1 year ago

tfenv install 0.13.5 Installing Terraform v0.13.5 Downloading release tarball from https://releases.hashicorp.com/terraform/0.13.5/terraform_0.13.5_darwin_arm64.zip curl: (22) The requested URL returned error: 404

Tarball download failed

PS : Apple M1 Pro

bradseefeld commented 1 year ago

Seeing the same but I think its because its an older version without arm support? I was able to work around by running TFENV_ARCH=amd64 tfenv install 0.13.5

bradseefeld commented 1 year ago

However, an arm version seems to exist, so Im not sure why specifying amd64 works.

https://releases.hashicorp.com/terraform/0.13.5/

bryanhiestand commented 9 months ago

0.13.5 only had ARM versions for freebsd and Windows. I think you're hitting the issue addressed in https://github.com/tfutils/tfenv/pull/403

If you pull the latest libexec/tfenv-install from master or the change from my PR, tfenv should work as expected.

Hopefully the maintainer will be able to cut a new release soon so homebrew can upgrade it for you.

You can also just upgrade from git