Skip to content

chdir doesn't respect .tflint.hcl from the called directory #1797

Closed Locked Answered by bendrucker
amaxine asked this question in Q&A
Discussion options

You must be logged in to vote

See https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/working-directory.md, this is still possible.

We made the decision that chdir should happen before anything meaningful, including loading configuration, and should be functionally equivalent to cd $dir && tflint in a shell. Terraform does the same. It is not a regression/bug.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@amaxine
Comment options

@bendrucker
Comment options

@bendrucker
Comment options

Answer selected by bendrucker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1796 on July 03, 2023 13:48.