Skip to content

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

@donjmilligan

Description

@donjmilligan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions