Releases: terraform-linters/tflint-plugin-sdk
v0.23.1
What's Changed
Bug Fixes
- fix: support array-based JSON syntax in WalkExpressions by @bendrucker in #422
Chores
- Bump google.golang.org/protobuf from 1.36.9 to 1.36.10 by @dependabot[bot] in #419
- Bump google.golang.org/grpc from 1.75.1 to 1.76.0 by @dependabot[bot] in #420
- Bump golang.org/x/tools from 0.37.0 to 0.38.0 by @dependabot[bot] in #421
Full Changelog: v0.23.0...v0.23.1
v0.23.0
What's Changed
Plugins built with this SDK version require Go 1.24+ and TFLint 0.46+.
Breaking Changes
Enhancements
- Fix Update ParseExpression to parse any json passed to it. by @rorychatterton in #418
Chores
- Fix broken GitHub Actions badge link by @wata727 in #379
- Enable Dependabot auto-merge by @wata727 in #380
- Bump github.com/zclconf/go-cty from 1.16.0 to 1.16.2 by @dependabot[bot] in #372
- Bump github.com/hashicorp/go-plugin from 1.6.2 to 1.6.3 by @dependabot[bot] in #373
- Bump google.golang.org/protobuf from 1.36.2 to 1.36.5 by @dependabot[bot] in #374
- Bump github.com/google/go-cmp from 0.6.0 to 0.7.0 by @dependabot[bot] in #376
- Bump google.golang.org/grpc from 1.69.2 to 1.71.0 by @dependabot[bot] in #378
- Bump golang.org/x/tools from 0.29.0 to 0.31.0 by @dependabot[bot] in #377
- Stop updating CHANGELOG.md by @wata727 in #381
- Pin GitHub Action versions by @wata727 in #382
- Bump actions/setup-go from 5.3.0 to 5.4.0 by @dependabot[bot] in #383
- Bump github/codeql-action from 3.28.11 to 3.28.13 by @dependabot[bot] in #385
- Bump google.golang.org/protobuf from 1.36.5 to 1.36.6 by @dependabot[bot] in #386
- Bump google.golang.org/grpc from 1.71.0 to 1.71.1 by @dependabot[bot] in #387
- Bump github/codeql-action from 3.28.13 to 3.28.14 by @dependabot[bot] in #388
- Bump github/codeql-action from 3.28.14 to 3.28.15 by @dependabot[bot] in #389
- Bump golang.org/x/tools from 0.31.0 to 0.32.0 by @dependabot[bot] in #390
- Bump google.golang.org/grpc from 1.71.1 to 1.72.0 by @dependabot[bot] in #392
- Remove advanced code scanning settings by @wata727 in #393
- Set workflow permissions explicitly by @wata727 in #394
- Bump golang.org/x/tools from 0.32.0 to 0.33.0 by @dependabot[bot] in #395
- Bump actions/setup-go from 5.4.0 to 5.5.0 by @dependabot[bot] in #396
- Bump github.com/zclconf/go-cty from 1.16.2 to 1.16.3 by @dependabot[bot] in #397
- Bump google.golang.org/grpc from 1.72.0 to 1.72.1 by @dependabot[bot] in #398
- Bump google.golang.org/grpc from 1.72.1 to 1.72.2 by @dependabot[bot] in #399
- Bump golang.org/x/tools from 0.33.0 to 0.34.0 by @dependabot[bot] in #400
- Bump golang.org/x/tools from 0.34.0 to 0.35.0 by @dependabot[bot] in #402
- Bump github.com/hashicorp/hcl/v2 from 2.23.0 to 2.24.0 by @dependabot[bot] in #403
- Bump google.golang.org/grpc from 1.72.2 to 1.74.2 by @dependabot[bot] in #404
- Bump google.golang.org/protobuf from 1.36.6 to 1.36.7 by @dependabot[bot] in #406
- Bump golang.org/x/tools from 0.35.0 to 0.36.0 by @dependabot[bot] in #407
- Bump actions/checkout from 4.2.2 to 5.0.0 by @dependabot[bot] in #408
- Bump github.com/zclconf/go-cty from 1.16.3 to 1.16.4 by @dependabot[bot] in #409
- Bump google.golang.org/grpc from 1.74.2 to 1.75.0 by @dependabot[bot] in #410
- dependabot: allow actions writes by @wata727 in #412
- Bump actions/setup-go from 5.5.0 to 6.0.0 by @dependabot[bot] in #413
- Bump github.com/zclconf/go-cty from 1.16.4 to 1.17.0 by @dependabot[bot] in #414
- Bump google.golang.org/protobuf from 1.36.7 to 1.36.8 by @dependabot[bot] in #411
- Bump google.golang.org/grpc from 1.75.0 to 1.75.1 by @dependabot[bot] in #416
- Bump google.golang.org/protobuf from 1.36.8 to 1.36.9 by @dependabot[bot] in #417
- Bump golang.org/x/tools from 0.36.0 to 0.37.0 by @dependabot[bot] in #415
- Bump github.com/hashicorp/go-plugin from 1.6.3 to 1.7.0 by @dependabot[bot] in #405
New Contributors
- @rorychatterton made their first contribution in #418
Full Changelog: v0.22.0...v0.23.0
v0.22.0
0.22.0 (2025-01-11)
Enhancements
Changes
Chores
- #343 #356: Bump github.com/hashicorp/hcl/v2 from 2.21.0 to 2.23.0
- #349 #355 #364: Bump google.golang.org/protobuf from 1.34.2 to 1.36.2
- #350: Bump github.com/hashicorp/go-plugin from 1.6.1 to 1.6.2
- #352 #365: Bump golang.org/x/tools from 0.23.0 to 0.29.0
- #353: Bump google.golang.org/grpc from 1.65.0 to 1.69.2
- #354 #360: Bump github.com/zclconf/go-cty from 1.15.0 to 1.16.0
- #357: Bump golang.org/x/net to v0.33.0
- #359: Bump protoc, protoc-gen-go, and protoc-gen-go-grpc to the latest version
v0.21.0
0.21.0 (2024-07-29)
Enhancements
- #337: helper: Add support sensitive variables in TestRunner
Chores
- #324: Bump github.com/hashicorp/go-plugin from 1.6.0 to 1.6.1
- #328: Bump github.com/hashicorp/go-version from 1.6.0 to 1.7.0
- #330: Bump google.golang.org/protobuf from 1.34.0 to 1.34.2
- #332: Bump github.com/go-test/deep from 1.1.0 to 1.1.1
- #333: Bump github.com/hashicorp/hcl/v2 from 2.20.1 to 2.21.0
- #334: Bump golang.org/x/tools from 0.20.0 to 0.23.0
- #335: Bump google.golang.org/grpc from 1.63.2 to 1.65.0
- #336: Bump github.com/zclconf/go-cty from 1.14.4 to 1.15.0
v0.20.0
0.20.0 (2024-05-02)
Enhancements
- #316: Bump github.com/hashicorp/hcl/v2 from 2.19.1 to 2.20.1
- This is required for provider-defined functions support
Chores
- #311: Bump google.golang.org/protobuf from 1.32.0 to 1.33.0
- #314: Bump github.com/zclconf/go-cty from 1.14.2 to 1.14.4
- #317: Bump github.com/hashicorp/go-hclog from 1.6.2 to 1.6.3
- #319: Bump golang.org/x/tools from 0.18.0 to 0.20.0
- #320: Bump google.golang.org/grpc from 1.61.1 to 1.63.2
- #321: Bump golang.org/x/net from 0.21.0 to 0.23.0
- #322: deps: Go 1.22.2
- #323: Bump google.golang.org/protobuf from 1.33.0 to 1.34.0
v0.19.0
0.19.0 (2024-02-25)
Chores
- #281 #307: deps: Go 1.22
- #283: Bump actions/checkout from 3 to 4
- #294: Bump github.com/google/go-cmp from 0.5.9 to 0.6.0
- #297: Bump github.com/hashicorp/hcl/v2 from 2.17.0 to 2.19.1
- #299: Bump google.golang.org/grpc from 1.57.0 to 1.61.1
- #300: Bump github.com/hashicorp/go-plugin from 1.4.10 to 1.6.0
- #301: Bump github.com/zclconf/go-cty from 1.13.2 to 1.14.2
- #302: Bump golang.org/x/tools from 0.11.0 to 0.18.0
- #303: Bump github/codeql-action from 2 to 3
- #304: Bump actions/setup-go from 4 to 5
- #305: Bump github.com/hashicorp/go-hclog from 1.5.0 to 1.6.2
- #306: Bump google.golang.org/protobuf from 1.31.0 to 1.32.0
v0.18.0
v0.17.0
0.17.0 (2023-06-18)
This release adds support for autofix API. The EmitIssueWithFix API allows you to implement autofix in your plugin using tflint.Fixer. Autofix is available in TFLint v0.47+. In earlier versions, the autofix is ignored.
This SDK version no longer supports TFLint v0.40/v0.41. This means that plugins built using this SDK require TFLint v0.42+.
Also, the Check method has been removed from tflint.RuleSet as a minor change. This means that if you override the Check method in a custom ruleset that embeds tflint.RuleSet, it will not be called. This is classified as a breaking change, but since the Check method is not supposed to be overwritten, it is recommended to use something like NewRunner.
Breaking Changes
- #258: tflint: Remove
Checkmethod fromtflint.RuleSetinterface - #263: Drop support for TFLint v0.40/v0.41
Enhancements
- #254: Introduce autofix API
Chores
- #253: Configure aqua to install protoc
- #255: Bump google.golang.org/grpc from 1.54.0 to 1.55.0
- #257: Bump github.com/zclconf/go-cty from 1.13.1 to 1.13.2
- #261: Bump github.com/hashicorp/go-plugin from 1.4.9 to 1.4.10
- #262: Bump github.com/hashicorp/hcl/v2 from 2.16.2 to 2.17.0
- #264: Bump golang.org/x/tools from 0.8.0 to 0.10.0
v0.16.1
v0.16.0
0.16.0 (2023-04-02)
This release deprecates the runner.EnsureNoError helper. This helper is still available in this version, but we recommend migrating to the function callback approach.
// Before
var val string
err := runner.EvaluateExpr(expr, &val, nil)
err = runner.EnsureNoError(err, func () error {
// Test values
})
if err != nil {
return err
}
// After
err := runner.EvaluateExpr(expr, func (val string), error {
// Test values
}, nil)See also terraform-linters/tflint-ruleset-template#76 for an example of upgrading the SDK.
Enhancements
- #225: ruleset: Allow a runner to be redefined within a ruleset
- The
NewRunnermethod has been added to thetflint.RuleSetinterface.
- The
- #239: plugin2host: Send marked values over the wire
- With this change, sensitive values can now be handled by plugins (requires TFLint v0.46+). Previously,
tflint.ErrSensitivewas always returned.
- With this change, sensitive values can now be handled by plugins (requires TFLint v0.46+). Previously,
- #246 #247: runner: Add support for function callbacks as the target of
EvaluateExpr- This allows reproducing the same behavior as before without using
EnsureNoError.
- This allows reproducing the same behavior as before without using
- #248: runner: Add support for the bool type as a target value of
EvaluateExpr
Changes
- #236: runner: Deprecate
EnsureNoErrorhelper- This helper is still available in this version, but we recommend migrating to the function callback approach.
Chores
- #233: Bump golang.org/x/net from 0.3.0 to 0.7.0
- #234: Go 1.20
- #235: plugin2host: Handle eval errors on the client side
- #238: Bump github.com/hashicorp/go-plugin from 1.4.8 to 1.4.9
- #240: Bump github.com/hashicorp/hcl/v2 from 2.15.0 to 2.16.2
- #241: Bump golang.org/x/tools from 0.4.0 to 0.7.0
- #243: Bump actions/setup-go from 3 to 4
- #244: Bump github.com/zclconf/go-cty from 1.12.1 to 1.13.1
- #245: Bump google.golang.org/protobuf from 1.28.1 to 1.30.0
- #249: Bump github.com/hashicorp/go-hclog from 1.4.0 to 1.5.0
- #250: Bump google.golang.org/grpc from 1.51.0 to 1.54.0