Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 during specified package install #372

Open
crosbygw opened this issue Dec 21, 2022 · 5 comments
Open

404 during specified package install #372

crosbygw opened this issue Dec 21, 2022 · 5 comments

Comments

@crosbygw
Copy link

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

@colmsnowplow
Copy link

I hit this problem too.

When I navigate to https://releases.hashicorp.com/terraform/ it looks like the issue is with the path - the directories are all terraform_X.X.X, rather than just the version. Eg. the binary I need is at https://releases.hashicorp.com/terraform/0.13.5/terraform_0.13.5_darwin_amd64.zip .

Seems like it might be an easy fix?

@colmsnowplow
Copy link

colmsnowplow commented Feb 2, 2023

@crosbygw I notice you're also on arm - I resolved by setting export TFENV_ARCH=amd64. Works as expected for me once that's set!

@norchen
Copy link

norchen commented Feb 8, 2023

Thank you @colmsnowplow for pointing out. I cam across the same issue and double checked link.
Setting TFENV_ARCH as you suggested works like charm 🙌

@n3ph
Copy link

n3ph commented Apr 6, 2023

@Zordrak @OJFord This was fixed by c30dae2

~tfenv --version
tfenv 3.0.0

~tfenv install 0.12.31
Installing Terraform v0.12.31
Downloading release tarball from https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_darwin_amd64.zip
################################################################################################################################################# 100.0%
Downloading SHA hash file from https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_SHA256SUMS
Not instructed to use Local PGP (/opt/homebrew/Cellar/tfenv/3.0.0/use-{gpgv,gnupg}) & No keybase install found, skipping OpenPGP signature verification
Archive:  /var/folders/md/4w4vvwp17416xtmcnpv2d_n80000gq/T/tfenv_download.90yksz/terraform_0.12.31_darwin_amd64.zip
  inflating: /opt/homebrew/Cellar/tfenv/3.0.0/versions/0.12.31/terraform
Installation of terraform v0.12.31 successful. To make this your default version, run 'tfenv use 0.12.31'

~ took 5s

@ankajain
Copy link

I faced the same problem today again. And after defining TFENV_ARCH, it got resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants