pre-commit
pre-commit copied to clipboard
fix: allow latest terragrunt
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-955orbug/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
Is it possible to get this one through ? @yhakbar maybe (last person to commit)