-
Hello, I’m using the following pre-commit config file:
And the following .tflint.hcl file:
Every time I run
If I run
For some reason, the SDK is pointing to the wrong file. If I replace the Could you please help me understand what’s causing this issue? I’m running on a Mac and using pre-commit version 4.1.0. The packages are installed using Brew. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
I am facing the same issue. I am using pre-commit version 4.0.1 (also installed via homebrew) |
Beta Was this translation helpful? Give feedback.
-
If you can isolate this from pre-commit I can open an issue. Otherwise this is more likely to be a configuration issue between pre-commit and TFLint. Your provided config has curly quotes which breaks the parser. I used this fixed config with straight quotes: plugin "aws" {
enabled = true
version = "0.37.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
} tflint -v
TFLint version 0.55.0
+ ruleset.aws (0.37.0)
+ ruleset.terraform (0.10.0-bundled) And then running An error about an out of date plugin version would suggest your config isn't loaded. Is it actually in the repo root and not A public repo reproducing your setup would be helpful. |
Beta Was this translation helpful? Give feedback.
-
I was able to find the solution (thanks to a colleague who helped out), and it appeared to be the Update your bash version with Thanks |
Beta Was this translation helpful? Give feedback.
I was able to find the solution (thanks to a colleague who helped out), and it appeared to be the
bash
version. Mac OS has bash 3.2 which for some reasons conflicts with some behaviors (most likely some BASHOPT are not supported).Update your bash version with
brew install bash
, give it a reboot (or exit, enter a new terminal session) and see if it works. For now I mark it as closed.Thanks