pre-commit icon indicating copy to clipboard operation
pre-commit copied to clipboard

fix: allow latest terragrunt

Open abdulhaq-e opened this issue 5 months ago • 1 comments

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.

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

Related Issues

abdulhaq-e avatar Sep 02 '25 11:09 abdulhaq-e

Is it possible to get this one through ? @yhakbar maybe (last person to commit)

rgarrigue avatar Oct 17 '25 12:10 rgarrigue