-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: OpenTofu support #4499
feat: OpenTofu support #4499
Conversation
I agree with the premise of this, and I like the solution, but I don't agree that it stops the need for hc-install - I think that is worthy of a discussion. I do not think your changes inherently conflict with the hc-install PR - it is very easy to do this for example
Especially as the I think if you are going to have separate interfaces for OpenTofu vs Terraform implementations, then a discussion on whether to use the same logic vs different logic for each Distribution should be had.
|
Thanks @james0209, that makes sense. I'd be happy to rebase this over the hc-install change. As you point out, that should be fairly straightforward. |
Due to wip status, I switched this to a draft as a non draft means that it's ready for review. Please set it as ready to review when ready. Thank you for the contribution |
we have merged hc-install update, might worth do the rebase and pick up this PR again. Thanks for all the efforts! |
The OpenTofu team is going to release this downloader to make it easier for us to auto download Opentofu. https://github.com/janosdebugs/downloader @meringu @nitrocode if any of you want to work on this let us know |
Awesome, I rebased this from main yesterday and got to the part where we need to download tofu. I'm keen to keep working on this, but happy to have it taken over if I'm being too slow. |
Tofu downloader has been moved: https://github.com/opentofu/tofudl |
Thanks for your patience. I've done the following:
I've done some testing on one of my Atlantis servers. I've been able to do successful plan and applies. Have also tested resolving different version from constraints from the |
Hi @meringu, it looks there are a lot of spurious changes included in this PR, |
ab4be23
to
f0f91d9
Compare
Thanks @X-Guardian, I have cherry picked out a new commit, and only run |
Have updated the PR description to reflect the changes. The PR is labeled as needs-discussion and waiting-on-response, so please let me know how I can help. |
Looks like tofudl is failing to compile on 32bit as this constant is too large: https://github.com/opentofu/tofudl/blob/76c6857d6eac665824b29da4e893e06e0b1896b2/branding/branding.go#L36 I'll look at raising a PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comments from the Tofu side, thank you for your work!
I believe this is ready for re-review (I don't have permissions to update the tags). I've left the OpenTofu mirror discussion open, If possible I would be keen to leave as is, and add extra flags to Atlantis once we have mirrors in use in the wild or someone requests this feature. This should give us a little more flexibility while the ecosystem matures. My guess is the security vulnerabilities aren't related to my PR, as main is failing too. If a maintainer feels comfortable sharing the findings, I'd be happy to take a look in this PR or another. |
Hey folks, anything we can do from the OpenTofu side to help move this one along? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested locally and it seems to work fine, and the code looks good to me!
Thanks for the contribution!
Thanks @meringu and everyone that helped on this. |
Co-authored-by: PePe Amengual <[email protected]> Signed-off-by: a1k0u <[email protected]>
what
This is a change to get OpenTofu to work with Atlantis:
--tf-distribution
setting that can be set toterraform
oropentofu
.server/core/terraform
package for the Terraform distribution. This matches up with the--tf-distribution
setting.why
#3741
tests
references