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

Version 0.18.0 and 0.15.0 failures on Ubuntu 22.04. Version 0.17.0 works #189

Open
donjmilligan opened this issue Jul 4, 2022 · 1 comment

Comments

@donjmilligan
Copy link

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:

  1. When i run tflint --init fom the directory with .tflint.hcl I get no output.

  2. 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]

  3. 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.

@wata727
Copy link
Member

wata727 commented Jul 14, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants