Skip to content

Releases: terraform-linters/tflint-plugin-sdk

v0.7.0

03 Jan 12:45
Compare
Choose a tag to compare

0.7.0 (2021-01-03)

This release changes the Runner interface. This is a breaking change and all plugins need to be built using this version in order to work with TFLint v0.23+.

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

Breaking Changes

  • #83: tflint: Add wantType argument to EvaluateExpr
  • #92: Bump protocol version

Enhancements

  • #79: tflint: Extend runner API for accessing the root provider configuration
  • #82: tflint: Add support for fetching rule config
  • #85: tflint: Add IsNullExpr API
  • #88: Avoid to read file directly from plugin side
  • #91: Make terraform configuration compatible with v0.14

Chores

  • #80: Bump github.com/google/go-cmp from 0.5.3 to 0.5.4
  • #86: Bump github.com/zclconf/go-cty from 1.7.0 to 1.7.1
  • #87: Bump github.com/hashicorp/hcl/v2 from 2.7.1 to 2.8.1
  • #90: Revise README

v0.6.0

29 Nov 14:36
Compare
Choose a tag to compare

0.6.0 (2020-11-23)

This release adds support for JSON configuration syntax. This is a breaking change and all plugins need to be built using this version in order to work with TFLint v0.21+.

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

Breaking Changes

  • #72: Allow serving custom RuleSet by plugins
    • Change tflint.Ruleset struct to the interface. The previous behavior can be reproduced by using the tflint.BuiltinRuleSet. If you do not need plugin-specific processing, please use tflint.BuiltinRuleSet directly.
  • #78: Bump protocol version

Enhancements

  • #69: Add support for JSON configuration syntax
  • #75: helper: Update helper runner

Chores

  • #68: Bump actions/setup-go from v2.1.2 to v2.1.3
  • #71: Bump github.com/zclconf/go-cty from 1.6.1 to 1.7.0
  • #73: Bump github.com/hashicorp/go-hclog from 0.14.1 to 0.15.0
  • #74: Bump github.com/hashicorp/go-plugin from 1.3.0 to 1.4.0
  • #76: Bump github.com/google/go-cmp from 0.5.2 to 0.5.3
  • #77: Bump github.com/hashicorp/hcl/v2 from 2.7.0 to 2.7.1

v0.5.0

13 Sep 07:52
Compare
Choose a tag to compare

0.5.0 (2020-09-13)

This release adds Config() API to accessing the Terraform configuration. This is a breaking change and all plugins need to be built using this version in order to work with TFLint v0.20+.

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

Breaking Changes

  • #59: Make terraform configuration compatible with v0.13
    • Remove Backend.ConfigRange, ModleCall.ConfigRange, ModuleCall.CountRange, and ModuleCall.ForEachRange
  • #65: Tweaks package structures
    • Renamed package names
      • terraform.Backend => configs.Backend
      • terraform.Resource => configs.Resource
      • terraform.ModuleCall => configs.ModuleCall
  • #67: plugin: Bump protocol version

Enhancements

  • #60: tflint: Add Runner.Config()

Internal Changes

  • #54: Accept DisabledByDefault config attribute

Chores

  • #55: chore(deps): bump go to v1.15
  • #56: Update GitHub Actions by Dependabot
  • #57: Bump actions/setup-go from v1 to v2.1.2
  • #58: Bump github.com/google/go-cmp from 0.5.1 to 0.5.2
  • #63: Bump github.com/zclconf/go-cty from 1.5.1 to 1.6.1
  • #66: Make terraform configuration compatible with v0.13.2

v0.4.0

17 Aug 08:08
Compare
Choose a tag to compare

0.4.0 (2020-08-17)

This release adds WalkModuleCalls() API to accessing the module calls. This is a breaking change and all plugins need to be built using this version in order to work with TFLint v0.19+.

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

Breaking Changes

  • #53: plugin: Bump protocol version

Enhancements

  • #50: client: Implement WalkModuleCalls

Chores

  • #51: Bump github.com/google/go-cmp from 0.5.0 to 0.5.1
  • #52: Bump github.com/hashicorp/go-version from 1.0.0 to 1.2.1

v0.3.0

19 Jul 08:45
Compare
Choose a tag to compare

0.3.0 (2020-07-19)

This release adds Backend() API to accessing the Terraform backend configuration. This is a breaking change and all plugins need to be built using this version in order to work with TFLint v0.18+.

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

Breaking Changes

  • #48: plugin: Bump protocol version

Enhancements

  • #47: client: Add Runner.Backend()
  • #49: helper: Add Backend() helper

v0.2.0

27 Jun 15:25
Compare
Choose a tag to compare

0.2.0 (2020-06-27)

This release adds APIs to access more Terraform's configurations.

Previously, only WalkResourceAttributes that can access top-level attributes were available, but WalkResourceBlocks that can access blocks and WalkResources that can access the entire resource including meta-arguments are now available.

In addition, the communication system between the plugin and the host has changed, and it is no longer dependent on the HCL structure implementation. This is a breaking change and all plugins need to be built using this version in order to work with TFLint v0.17+.

Breaking Changes

  • #24: tflint: Sending expression nodes as a text representation
  • #41: tflint: Remove Metadata
  • #45: plugin: Bump protocol version

Enhancements

  • #23: helper: Compare Rule types with custom comparer
  • #29 #33: tflint: Add WalkResourceBlocks API
  • #35: tflint: Allow to omit metadata expr on EmitIssue
  • #34 #37: tflint: Add WalkResources API
  • #40: helper: Add WalkResourceBlocks helper

Chores

  • #27: Bump github.com/hashicorp/go-hclog from 0.13.0 to 0.14.1
  • #38: Revise package structure
  • #39: Bump github.com/google/go-cmp from 0.4.1 to 0.5.0
  • #42: Bump github.com/zclconf/go-cty from 1.4.1 to 1.5.1
  • #43: Create Dependabot config file
  • #44: Setup Code Scanning

v0.1.1

23 May 14:25
Compare
Choose a tag to compare

0.1.1 (2020-05-23)

Changes

  • #20: helper: Make Issues of TestRunner non-nil

Chores

  • #15: Bump github.com/hashicorp/go-hclog from 0.10.1 to 0.13.0
  • #16: Bump github.com/google/go-cmp from 0.3.1 to 0.4.1
  • #17: Bump github.com/hashicorp/hcl/v2 from 2.2.0 to 2.5.1
  • #18: Adding gitignore file
  • #19: Add tests and CI setups
  • #21: Bump github.com/hashicorp/go-plugin from 1.0.1 to 1.3.0
  • #22: Bump github.com/zclconf/go-cty from 1.1.1 to 1.4.1

v0.1.0

18 Jan 13:41
Compare
Choose a tag to compare

v0.1.0 (2020-01-18)

Initial release