Skip to content
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: Only check TF version when necessary #3583

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yhakbar
Copy link
Collaborator

@yhakbar yhakbar commented Nov 20, 2024

Description

Makes it so that terragrunt --version/tofu --version/terraform --version are only run when a version constraint is defined in configuration.

This saves a couple milliseconds on every HCL parse, which can add up over time.

This change also removes the baked in Minimum Supported Version of Terraform from the terragrunt binary. The version that was being checked is very old, and it's unlikely that anyone is still using it. If you are, you will still be at risk of running into issues getting support with Terragrunt. The compatiblity table is still respected.

TODOs

Read the Gruntwork contribution guidelines.

  • Update the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
  • Include release notes. If this PR is backward incompatible, include a migration guide.

Release Notes (draft)

Updated version_check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant