Releases: terraform-linters/tflint-plugin-sdk
v0.7.0
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
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
v0.6.0
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 thetflint.BuiltinRuleSet
. If you do not need plugin-specific processing, please usetflint.BuiltinRuleSet
directly.
- Change
- #78: Bump protocol version
Enhancements
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
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
, andModuleCall.ForEachRange
- Remove
- #65: Tweaks package structures
- Renamed package names
terraform.Backend
=>configs.Backend
terraform.Resource
=>configs.Resource
terraform.ModuleCall
=>configs.ModuleCall
- Renamed package names
- #67: plugin: Bump protocol version
Enhancements
- #60: tflint: Add
Runner.Config()
Internal Changes
- #54: Accept DisabledByDefault config attribute
Chores
v0.4.0
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
v0.3.0
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
v0.2.0
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
v0.1.1
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