Skip to content

Conversation

abdulhaq-e
Copy link

@abdulhaq-e abdulhaq-e commented Sep 2, 2025

Description

The current checks for supported version fails if terragrunt has been built from source. This is because the command terragrunt --version outputs "terragrunt version latest" which fails the comparisons and stops the pre-commit hook from running.

This PR fixes the version check by searching for "latest" in the version output first.

Note: The code changes have been suggested by Gemini, I only made minor edits.

Documentation

TODOs

Please ensure all of these TODOs are completed before asking for a review.

  • Ensure the branch is named correctly with the issue number. e.g: feature/new-vpc-endpoints-955 or bug/missing-count-param-434.
  • Update the docs.
  • Keep the changes backward compatible where possible.
  • Run the pre-commit checks successfully.
  • Run the relevant tests successfully.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.

Related Issues

The current checks for supported version fails if terragrunt has been built from source. This is because the command `terragrunt --version` outputs "terragrunt version latest" which fails the comparisons and stops the pre-commit hook from running.
@abdulhaq-e abdulhaq-e changed the title Bug/allow latest terragrunt fix: allow latest terragrunt Sep 2, 2025
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