Skip to content

Releases: terraform-linters/tflint-plugin-sdk

v0.13.0

17 Sep 12:54
Compare
Choose a tag to compare

0.13.0 (2022-09-17)

Enhancements

  • #198: host2plugin: Allow ruleset to accept Only option
    • This change is necessary due to a priority bug with the --only option. Most plugins are unaffected by this change.

Chores

  • #197: Bump github.com/google/go-cmp from 0.5.8 to 0.5.9

v0.12.0

07 Sep 14:49
Compare
Choose a tag to compare

0.12.0 (2022-09-07)

This release adds GetModulePath() API. This is a breaking change and all plugins need to be built using this version in order to work with TFLint v0.40+.

See also terraform-linters/tflint-ruleset-template#62 for an example of upgrading the SDK.

Breaking Changes

  • #171: Add GetModulePath method
  • #188: Bump protocol version

Enhancements

  • #169: hclext: Add hclext.Blocks's OfType helper
  • #170: hclext: Add AsNative helper
  • #172: tflint: Add GetProviderContent helper
  • #174: tflint: Add tflint.ErrSensitive
  • #177: helper: Add support for JSON syntax in TestRunner
  • #178: Allow calling DecodeRuleConfig without rule config
  • #180: terraform: Add lang.ReferencesInExpr
  • #181: tflint: Add WalkExpressions function

BugFixes

  • #190: logger: Do not set location offset in go-plugin

Chores

  • #161 #182: Bump github.com/hashicorp/go-plugin from 1.4.3 to 1.4.5
  • #166 #194: Bump github.com/hashicorp/hcl/v2 from 2.12.0 to 2.14.0
  • #168 #187: Bump google.golang.org/grpc from 1.46.0 to 1.49.0
  • #173 #195: Bump github.com/hashicorp/go-hclog from 1.2.0 to 1.3.0
  • #175: Bump google.golang.org/protobuf from 1.28.0 to 1.28.1
  • #176: build: go 1.19
  • #179: build: Use go-version-file instead of go-version
  • #183: Bump golang.org/x/tools from 0.1.11 to 0.1.12
  • #184: Bump github.com/go-test/deep from 1.0.3 to 1.0.8
  • #185: Remove unused ruleset function
  • #186: Bump github.com/zclconf/go-cty from 1.10.0 to 1.11.0

v0.11.0

05 May 07:33
Compare
Choose a tag to compare

0.11.0 (2022-05-05)

Enhancements

  • #160: tflint: Add IncludeNotCreated option to GetModuleContent

Chores

  • #150: Bump google.golang.org/protobuf from 1.27.1 to 1.28.0
  • #154: Bump actions/setup-go from 2 to 3
  • #155: Bump google.golang.org/grpc from 1.45.0 to 1.46.0
  • #156: Bump github.com/hashicorp/hcl/v2 from 2.11.1 to 2.12.0
  • #157: plugin2host: Return sources instead of *hcl.File in GetRuleConfigContent
  • #158: Bump github.com/google/go-cmp from 0.5.7 to 0.5.8
  • #159: Bump github/codeql-action from 1 to 2

v0.10.1

02 Apr 12:29
Compare
Choose a tag to compare

0.10.1 (2022-04-02)

BugFixes

  • #153: helper: Skip un-used variable block attributes

v0.10.0

27 Mar 07:16
Compare
Choose a tag to compare

0.10.0 (2022-03-27)

This release contains a major update to the plugin system. Previously, this SDK uses traditional net/rpc + gob, but now it uses gRPC + Protocol Buffers.

The API also contains many incompatible changes. See terraform-linters/tflint-ruleset-template#48 for how to migrate. TFLint v0.35+ is required to work with new plugin systems.

Breaking Changes

Chores

  • #133 #145: build: Go 1.18
  • #134: Bump github.com/hashicorp/go-plugin from 1.4.2 to 1.4.3
  • #136: Bump github.com/zclconf/go-cty from 1.9.0 to 1.10.0
  • #138: Bump github.com/hashicorp/hcl/v2 from 2.10.0 to 2.11.1
  • #139: Bump github.com/hashicorp/go-version from 1.3.0 to 1.4.0
  • #141: Bump github.com/google/go-cmp from 0.5.6 to 0.5.7
  • #143: Bump actions/checkout from 2 to 3
  • #144: Bump github.com/hashicorp/go-hclog from 0.16.2 to 1.2.0

v0.9.1

17 Jul 09:02
Compare
Choose a tag to compare

0.9.1 (2021-07-17)

BugFixes

  • #128: tflint: Add workaround when parsing a config that has a trailing heredoc

Chores

  • #125: Bump github.com/zclconf/go-cty from 1.8.4 to 1.9.0
  • #126: Bump github.com/hashicorp/go-hclog from 0.16.1 to 0.16.2

v0.9.0

03 Jul 10:05
Compare
Choose a tag to compare

0.9.0 (2021-07-03)

This release adds Files() API. This is a breaking change and all plugins need to be built using this version in order to work with TFLint v0.30+.

See also terraform-linters/tflint-ruleset-template#37 for an example of upgrading the SDK.

Breaking Changes

  • #122: Implement Files() method
  • #124: Bump protocol version

Chores

  • #109: Bump github.com/hashicorp/go-version from 1.2.1 to 1.3.0
  • #112: Bump github.com/hashicorp/hcl/v2 from 2.9.1 to 2.10.0
  • #117: Bump github.com/hashicorp/go-hclog from 0.15.0 to 0.16.1
  • #120: Bump github.com/google/go-cmp from 0.5.5 to 0.5.6
  • #121: Bump github.com/hashicorp/go-plugin from 1.4.0 to 1.4.2
  • #123: Bump github.com/zclconf/go-cty from 1.8.1 to 1.8.4

v0.8.2

04 Apr 06:21
Compare
Choose a tag to compare

0.8.2 (2021-04-04)

Changes

  • #101: helper: Use a consistent env var for TF_WORKSPACE

BugFixes

  • #107: client: Pass only type to EvalExpr when passed detailed types

Chores

  • #102: Upgrade to Go 1.16
  • #103 #106: Bump github.com/hashicorp/hcl/v2 from 2.8.2 to 2.9.1
  • #105: Bump github.com/google/go-cmp from 0.5.4 to 0.5.5
  • #108: Bump github.com/zclconf/go-cty from 1.8.0 to 1.8.1

v0.8.1

01 Feb 16:45
Compare
Choose a tag to compare

0.8.1 (2021-02-02)

BugFixes

  • #100: tflint: Make sure RuleNames always return all rules

v0.8.0

31 Jan 08:53
Compare
Choose a tag to compare

0.8.0 (2021-01-31)

This release fixes some bugs when using Config API. This is a breaking change and all plugins need to be built using this version in order to work with TFLint v0.24+.

See also terraform-linters/tflint-ruleset-template#26 for an example of upgrading the SDK.

Breaking Changes

  • #96: Use msgpack to encoding to pass cty.Value in variable default
  • #98: Use json for transfering cty.Type

BugFixes

  • #97: Fix heredoc parsing in parseConfig

Chores

  • #94: Bump github.com/hashicorp/hcl/v2 from 2.8.1 to 2.8.2
  • #99: Allow use of ${terraform.workspace} in tests