-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
pre-commit run --all-files fails on dirs that don't contain terragrunt.hcl #732
Comments
According to https://terragrunt.gruntwork.io/docs/getting-started/configuration/
So we parse all hcl files pre-commit-terraform/.pre-commit-hooks.yaml Lines 80 to 86 in a78104c
If you face that if you will run from CLI
result will be different than provided by pre-commit - please let us know
Please run |
Btw, 1. looks like duplicate of #191 |
Describe the bug
Not a major breaking issue but confused me for a bit.
If you're testing your pre-commit hook using
run --all-files
thenper_dir_hook_unique_part
is run instead ofrun_hook_on_whole_repo
. This causes it to fail on dirs that don't haveterragrunt.hcl
butroot.hcl
for example.pre-commit-terraform/hooks/terragrunt_validate.sh
Lines 31 to 61 in a78104c
How can we reproduce it?
/Users/sophie/.cache/pre-commit/pre-commit.log
version information
error information
Environment information
uname -a
and/orsysteminfo | Select-String "^OS"
output:Darwin Mac.fritz.box 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:02:41 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6030 arm64
.pre-commit-config.yaml
:file content
The text was updated successfully, but these errors were encountered: