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

Fix to follow HTTP redirection when downloading latest terraform-docs #127

Closed
wants to merge 1 commit into from

Conversation

ryanellis
Copy link

The curl command to download the latest version of terraform-docs is failing due to a HTTP/301 redirection.
Adding -L will follow the redirection.

The curl command to download the latest version of `terraform-docs` is failing due to a HTTP/301 redirection.
Adding `-L` will follow the redirection.
@ryanellis ryanellis changed the title Follow HTTP redirection to download latest terraform-docs Fix to follow HTTP redirection when downloading latest terraform-docs Jul 16, 2020
@nicholasmhughes
Copy link

Should we just point to the correct location instead?

Old URL on line 27:

https://api.github.com/repos/segmentio/terraform-docs/releases/latest

Potential new URL on line 27:

https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest

Not sure if the URL is a moving target.

@ryanellis
Copy link
Author

@nicholasmhughes - agreed, the latter doesn't redirect :-)

@antonbabenko
Copy link
Owner

Thanks for the update, this has been just fixed by #130

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 this pull request may close these issues.

3 participants