-
Notifications
You must be signed in to change notification settings - Fork 137
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
OpenTofu Support #315
Comments
Wouldn't something like the https://github.com/warrensbox/terraform-switcher#use-custom-mirror |
Hey @nitrocode - not quite. |
Hey folks! The main motivation: to separate concerns because tofu shall be treated as a standalone software independent of terraform when it comes to distribution. It'd enable for clean migration of CI pipelines etc. |
Same issue that affects listing versions in mirrors will also affect opentofu since there isn't a single non-paginated url containing every opentofu release. Related issue |
An option might be to switch from downloading terraform releases from the hashicorp page and download instead directly from github. Then it would be fairly simple to download the files from opentofu instead. The version check would then have to hit the github rest api or have an index url file passed in as an argument. https://github.com/opentofu/opentofu/releases |
I made a page here that seems to line up similar to the terraform release page |
We'll probably need a way of overriding the It might also be nice to override the rest of these too. Lines 40 to 49 in d7dfd1b
terraform-switcher/lib/install.go Lines 15 to 22 in d7dfd1b
|
I'm interested in this issue, as we use tfswitch (or terraform-switcher ;) ) in Terrareg. Once concern I could imagine is that, you're using Hashicorp's HCL library for obtaining the constraint from a Lines 430 to 435 in d7dfd1b
Do we know if OpenTofu are sticking with this format (are they planning on changing the name at some point?) and I assume they have their own fork of the libraries: Line 30 in d7dfd1b
Edit: It looks like OpenTofu are still using hashicorp's hcl library and that library hasn't changed it's license. |
Hopefully OpenTofu isn't going to break core features and syntax compatibility in any near future 🤞🏻 |
This comment was marked as spam.
This comment was marked as spam.
@kvendingoldo While I have nothing against Please be respectful and mindful. PS: To the extent possible we'll make our best to look into OpenTofu and Terragrunt support to be implemented in |
The tenv doesn't help me unfortunately because it's not the cli that I'd need here. Atlantis (and other apps) uses the underlying |
Thanks for the update and details. While we're a bit short on human power to implement OpenTofu support, we welcome contributions and we'll try our best to review them as fast as our capacity allows. |
This comment was marked as spam.
This comment was marked as spam.
It's unrelated to the issue you mentioned. See this issue for the lower level details runatlantis/atlantis#4339. |
…or when passing too many args Issue #315
Issue #315 Co-authored-by: Johannes Brunswicker <[email protected]>
Issue #315 Co-authored-by: George L. Yermulnik <[email protected]>
…m name Issue #315 Co-authored-by: George L. Yermulnik <[email protected]>
Issue #315 Co-authored-by: George L. Yermulnik <[email protected]>
Issue #315 Co-authored-by: George L. Yermulnik <[email protected]>
…or when passing too many args Issue #315 Co-authored-by: George L. Yermulnik <[email protected]>
This is to represent producT or Tool. This avoids possible common naming for 'quiet' Issue #315 Co-authored-by: George L. Yermulnik <[email protected]>
… to fetch versions before mirror URL default is set Only update mirror URL, if it's not already been defined by the user Issue #315
Thanks for implementing this @MatthewJohn @warrensbox will there be a release soon? |
We're just doing some testing at the moment on the alpha release of this :) |
Opentofu feature was released on https://github.com/warrensbox/terraform-switcher/releases/tag/v1.2.0 Latest bug fixed: v1.2.2 (mostly related to windows) |
Is your feature request related to a problem? Please describe.
Per https://opentf.org/announcement, a new fork of Terraform, OpenTF is being created.
Describe the solution you'd like
Allow using
tfswitch
to install and manage OpenTF versions in addition to Terraform versions.The text was updated successfully, but these errors were encountered: