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

fix: terragrunt validate for module folders (#191) #192

Closed
wants to merge 1 commit into from
Closed

fix: terragrunt validate for module folders (#191) #192

wants to merge 1 commit into from

Conversation

mhennecke
Copy link

@mhennecke mhennecke commented Apr 6, 2021

Only include folders with a terragrunt.hcl file (default for terragrunt validate) in the terragrunt_validate pre-commit hook

Fixes #191

@MaxymVlasov MaxymVlasov added estimate/1h Need 1 hour to be done hook/terragrunt_validate Bash hook feature New feature or request labels Sep 9, 2021
@github-actions
Copy link

This PR has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this PR will be closed in 10 days

@github-actions github-actions bot added the stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 10, 2021
@MaxymVlasov MaxymVlasov removed the stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 14, 2021
@MaxymVlasov
Copy link
Collaborator

This PR does not provide a fix that can be accepted.

Firstly, terragrunt_validate hook run only in folders with .hcl files

- id: terragrunt_validate
name: Terragrunt validate
description: Validates all Terragrunt configuration files.
entry: terragrunt_validate.sh
language: script
files: (\.hcl)$
exclude: \.terraform\/.*$

Secondly, folks can create many .hcl files in one dir and/or name them different than terragrunt.hcl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
estimate/1h Need 1 hour to be done feature New feature or request hook/terragrunt_validate Bash hook
Projects
None yet
Development

Successfully merging this pull request may close these issues.

terragrunt_validate - fails for folders without terragrunt.hcl
2 participants