-
Notifications
You must be signed in to change notification settings - Fork 5
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
[tfswitch-parity] Auto-install if a .tf file contains a Terraform required_version
block
#31
Comments
@skyzyx looks great! We'll take it to work |
Hi, I am working on a a golang rewrite : https://github.com/dvaumoron/gotofuenv The tofu proxy of gotofuenv default behaviour is latest-allowed, with a fallback to latest-stable if no required_version from .tf files are found. I would appreciate a chat to pool our effort together... |
Hi @dvaumoron. Your projects looks great. We had the same in our plans, because bash-based application is not a good idea for different operation systems. Some time ago we started to work on At this moment Let's make a new generation of Terraform/OpenTofu version switcher based on Golang together. |
gotofuenv is functional (currently only tested on linux/amd64 with .deb installation or brew installation). That's not a wrapper but a pair of standalone executable (the tofu proxy and gotofuenv cli) However it lack Terraform retrieval support, and adding a bunch of automated test would be great. |
@dvaumoron For now I made a rough implementation that is a Golang wrapper under tfenv/tofuenv, but it was made to reduce release date. We are going to make It would be good to merge your gotofuenv into tenv. By that OpenTofu/Terraform community have just a one tool in the near future to manage versions. |
I take a look on tenv, i am unsure about the best way to integrate my work in it |
If i separate my initCmds from main package of gotofuenv, it will be callable to be added as subcommand, but that's quick and dirty mode, it will leave duplication (your package to call github api does not work the same as mine) and inconsistencies (i do not use logrus for my display) |
@dvaumoron it will be good for the beginning. In the future we can merge Today we gonna post an initial design for main tenv methods, it probably can be a good for the future implementation. Also, we can disscuss technical details like logrus / github package. It helps us to make our future repositories merge less painfull. I invite you to talk about all of this technical stuff inside of |
Please replicate this feature from
tfswitch
. https://tfswitch.warrensbox.com/Quick-Start/#use-versiontf-fileThe text was updated successfully, but these errors were encountered: