-
Notifications
You must be signed in to change notification settings - Fork 41
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] Support version ranges defined in terragrunt.hcl #27
Comments
Does not seem complicated to do (there is already hcl parsing for .tf files), what should be the prioritiy order ? I suggest forcing env var , then version files (.opentofu-version or .terraform-version), then terragrunt.hcl file, and last scanning for .tf files I want to underline that if we continue to add support for more ways to choose a version to use, the priority rules should be clearly indicated by the documentation. |
Change done, however the code in semantic.go is not very readable, i will think about a way to refactor it. |
I think that's better. Any remark ? |
@dvaumoron I think so! Great! |
Describe the solution you'd like
Please replicate this feature from tfswitch. https://tfswitch.warrensbox.com/Quick-Start/#use-terragrunthcl-file
Additional context
It's backport of the original issue from tofuenv: tofuutils/tofuenv#33
cc @skyzyx
The text was updated successfully, but these errors were encountered: