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
NewRunner
method has been added to thetflint.RuleSet
interface.
- 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.ErrSensitive
was 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
EnsureNoError
helper- 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