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

download failling with 404 #437

Open
g-- opened this issue Nov 15, 2024 · 1 comment
Open

download failling with 404 #437

g-- opened this issue Nov 15, 2024 · 1 comment

Comments

@g--
Copy link

g-- commented Nov 15, 2024

I think something changed with Hashicorp's website that's making automatic downloads fail.

Observations

  1. tfenv displays the error
Downloading release tarball from https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_darwin_arm64.zip
curl: (56) The requested URL returned error: 404

Tarball download failed
/opt/homebrew/Cellar/tfenv/3.0.0/lib/tfenv-exec.sh: line 43: /opt/homebrew/Cellar/tfenv/3.0.0/versions/0.12.31/terraform: No such file or directory
  1. wget also fails with the same URL (https://releases.hashicorp.com/terraform/0.12.31/terraform_0.12.31_darwin_arm64.zip)
  2. opening my browser at that URL displays an errror <Code>NoSuchKey</Code><Message>The specified key does not exist.</Message>
  3. opening my browser at this page first and clicking on the terraform_0.12.31_darwin_arm64.zip link succeeds. Note the URL for that link is the same as tfenv uses.

workaround

Anyone having this problem, my work around is to download the binaries from hashicorp in a browser and unzip it where tfenv looks for it. Eg. with homebrew, that's /opt/homebrew/Cellar/tfenv/3.0.0/versions/<version number>.

Possible fixes

I haven't looked the differences between clicking on the link and going directly so I don't have any suggestions on fixes. My priority here is to document that it's happening so there's a place to discuss.

@g--
Copy link
Author

g-- commented Nov 15, 2024

I want to shout out to the tfenv maintainers: thank you for your work, it makes maintaining multiple tf repos so much easier!

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

No branches or pull requests

1 participant