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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using hc-install instead of go-getter to install terraform binary #4483

Open
1 task done
lukemassa opened this issue Apr 25, 2024 · 1 comment 路 May be fixed by #4494
Open
1 task done

Consider using hc-install instead of go-getter to install terraform binary #4483

lukemassa opened this issue Apr 25, 2024 · 1 comment 路 May be fixed by #4494
Labels
feature New functionality/enhancement

Comments

@lukemassa
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Describe the user story

Terraform recently released version 1.8.2, which changes the way terraform packages its binary led to it being incompatible with atlantis's --tf-download functionality. We worked around this by explicitly ignoring version 1.8.2 (#4474). More information here: #35075.

The recommendation from the TF Core maintainer was to use a hashicorp tool called hc-install: hashicorp/terraform#35075 (comment). This seems in general more robust than what Atlantis is currently doing, and is worth investigating.

Describe the solution you'd like

Investigate the possibility of using hc-install to download and install terraform.

Describe the drawbacks of your solution

I haven't thought about this too much yet, just wanted to open this up for discussion.

Describe alternatives you've considered

We could continue to manually download and install, including extracting the binary more explicitly (#4478).

@james0209
Copy link

james0209 commented May 1, 2024

Hey! Yeah I've opened up a WIP PR to default URL downloads to hc-install - #4494
(custom URL downloads are a little different, explained in PR description)

If anyone has any opions/views/concerns or want to discuss it more please let me know! I replied to a comment in the PR already and started filling in the PR description to make the current logic vs proposed changes easier to understand.

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

Successfully merging a pull request may close this issue.

2 participants