-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add support for legacy parsing of main.tf #32
Comments
@virtualroot Would you accept a PR ? |
Hi @hinricht 👋 many thanks for opening this feature request. I'm happy to accept a PR if you and others are willing to resolve any bugs that may appear after the feature is released. Currently, I do not use wdyt? |
@virtualroot Nice, I'll see when I can work on this, and will create a PR. |
Here it is, hope it works! |
Btw, I'm using mise and noticed that with this change, mise is able to set the tofu version from a main.tofu. but not from a file with a different name (even when I export the ASDF_OPENTOFU_VERSION_FILE env var to this file name). Therefore I created a mise issue to track this error: jdx/mise#2602 Just fyi. |
Thanks for the heads-up! |
Is your feature request related to a problem? Please describe.
We'd like to use the
main.tf
/main.tofu
file to pin the opentofu version, just like the terraform plugin does (i.e. https://github.com/asdf-community/asdf-hashicorp/blob/master/bin/parse-legacy-file).See also the legacy version files documentaion
Describe the solution you'd like
We'd like the plugin to be able to
Describe alternatives you've considered
.mise.toml
is an option, although this leads to 2 places where the tofu version is pinned (.mise.toml
andmain.tofu
)Additional context
None
The text was updated successfully, but these errors were encountered: