tflint-ruleset-google
tflint-ruleset-google copied to clipboard
Version 0.18.0 and 0.15.0 failures on Ubuntu 22.04. Version 0.17.0 works
I'm working with a fresh install of Ubuntu 22.04, using go1.18.1 linux/amd64, TFLint version 0.38.1, and pre-commit 2.19.0. Our team uses tflint with the tflint-ruleset-google plugin on a daily basis, and I had no problems in Ubuntu 20.04 previously.
While using tflint-ruleset-google versions 0.18.0 and 0.15.0, I get the following results:
-
When i run
tflint --initfom the directory with .tflint.hcl I get no output. -
When I run
tflint --enable-plugin=google .from the same directory, the output looks like this -Failed to initialize plugins; TFLint is not compatible with this version of the "google" plugin. A newer TFLint or plugin version may be required. Plugin version: 9, Client versions: [10] -
tflint fails with this message from pre-commit
using a hook as follows:
- id: terraform_tflint
args:
- --args=--ignore-module=./examples
results in:
Terraform validate with tflint...........................................Failed
- hook id: terraform_tflint
- exit code: 1
TFLint in modules/blueprint.landingzone.application/:
Failed to initialize plugins; Plugin `google` not found. Did you run `tflint --init`?
Version 0.17.0 works for me.
In v0.18.0, the protocol version is v10, so the "not compatible" error does not occur. That is, you may not be using v0.18.0.
Check the plugin version by referring to debug logs. For reference, the version of the plugin invoked by TFLint is selected from in .tflint.hcl in the directory where you executed the command.